mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-05 07:27:42 +02:00
MESSENGER-3062 BuM Login flow
This commit is contained in:
+1
-1
@@ -75,7 +75,7 @@ class AuthenticationService: NSObject {
|
||||
fatalError("Invalid defeiault homeserver URL string.")
|
||||
}
|
||||
|
||||
state = AuthenticationState(flow: .login, homeserverAddress: BuildSettings.serverConfigDefaultHomeserverUrlString)
|
||||
state = AuthenticationState(flow: .login, homeserverAddress: AppConfigService.shared.serverUrl())
|
||||
client = clientType.init(homeServer: homeserverURL, unrecognizedCertificateHandler: nil)
|
||||
|
||||
self.sessionCreator = sessionCreator
|
||||
|
||||
@@ -96,16 +96,19 @@ struct OnboardingSplashScreen: View {
|
||||
/// The main action buttons.
|
||||
var buttons: some View {
|
||||
VStack(spacing: 12) {
|
||||
Button { viewModel.send(viewAction: .register) } label: {
|
||||
Text(VectorL10n.onboardingSplashRegisterButtonTitle)
|
||||
if BwiBuildSettings.bwiOnboardingSplashScreenEnableRegister {
|
||||
Button { viewModel.send(viewAction: .register) } label: {
|
||||
Text(VectorL10n.onboardingSplashRegisterButtonTitle)
|
||||
}
|
||||
.buttonStyle(PrimaryActionButtonStyle())
|
||||
}
|
||||
.buttonStyle(PrimaryActionButtonStyle())
|
||||
|
||||
Button { viewModel.send(viewAction: .login) } label: {
|
||||
Text(VectorL10n.onboardingSplashLoginButtonTitle)
|
||||
.font(theme.fonts.body)
|
||||
.padding(12)
|
||||
}
|
||||
.buttonStyle(PrimaryActionButtonStyle())
|
||||
}
|
||||
.padding(.horizontal, 16)
|
||||
.readableFrame()
|
||||
|
||||
Reference in New Issue
Block a user