MESSENGER-5033 add feature flag for OIDC login

This commit is contained in:
JanNiklas Grabowski
2023-10-26 13:35:13 +02:00
parent d87411be9d
commit f347f687a9

View File

@@ -75,13 +75,13 @@ struct AuthenticationLoginScreen: View {
qrLoginButton
}
if viewModel.viewState.homeserver.showLoginForm, viewModel.viewState.showSSOButtons {
if viewModel.viewState.homeserver.showLoginForm, viewModel.viewState.showSSOButtons, BWIBuildSettings.shared.isOIDCEnabled {
Text(VectorL10n.or)
.foregroundColor(theme.colors.secondaryContent)
.padding(.top, 16)
}
if viewModel.viewState.showSSOButtons {
if viewModel.viewState.showSSOButtons, BWIBuildSettings.shared.isOIDCEnabled {
ssoButtons
.padding(.top, 16)
}