mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 01:22:46 +02:00
Fix PR remarks
This commit is contained in:
+8
-9
@@ -63,18 +63,17 @@ struct AuthenticationState {
|
||||
AuthenticationHomeserverViewData(address: displayableAddress,
|
||||
isMatrixDotOrg: isMatrixDotOrg,
|
||||
showLoginForm: preferredLoginMode.supportsPasswordFlow,
|
||||
showRegistrationForm: registrationFlow != nil,
|
||||
showRegistrationForm: registrationFlow != nil && !needsRegistrationFallback,
|
||||
ssoIdentityProviders: preferredLoginMode.ssoIdentityProviders ?? [])
|
||||
}
|
||||
|
||||
/// Needs authentication fallback for login or registration
|
||||
var needsFallback: Bool {
|
||||
switch preferredLoginMode {
|
||||
case .unsupported:
|
||||
return true
|
||||
default:
|
||||
break
|
||||
}
|
||||
/// Needs authentication fallback for login
|
||||
var needsLoginFallback: Bool {
|
||||
return preferredLoginMode.isUnsupported
|
||||
}
|
||||
|
||||
/// Needs authentication fallback for registration
|
||||
var needsRegistrationFallback: Bool {
|
||||
guard let flow = registrationFlow else {
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user