Show fallback on login screen

This commit is contained in:
ismailgulek
2022-05-27 17:51:54 +03:00
parent 88b2688703
commit dc4845618c
8 changed files with 127 additions and 5 deletions
@@ -27,6 +27,7 @@ enum MockAuthenticationLoginScreenState: MockScreenState, CaseIterable {
case passwordOnly
case passwordWithCredentials
case ssoOnly
case fallback
/// The associated screen
var screenType: Any.Type {
@@ -47,6 +48,8 @@ enum MockAuthenticationLoginScreenState: MockScreenState, CaseIterable {
viewModel.context.password = "password"
case .ssoOnly:
viewModel = AuthenticationLoginViewModel(homeserver: .mockEnterpriseSSO)
case .fallback:
viewModel = AuthenticationLoginViewModel(homeserver: .mockFallback)
}