mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-16 06:28:27 +02:00
Merge branch 'feature/5830_hide_password_policy_bum' into 'develop'
MESSENGER-5830 Hide change password requirements See merge request bwmessenger/bundesmessenger/bundesmessenger-ios!334
This commit is contained in:
@@ -731,4 +731,7 @@ class BWIBuildSettings: NSObject {
|
||||
// MARK: Federation Introduction
|
||||
// (only when federation is enabled in the client and well-known flag is set)
|
||||
var showFederationIntroduction = false
|
||||
|
||||
// MARK: Change Password
|
||||
var showPasswordRequirements = false
|
||||
}
|
||||
|
||||
@@ -97,16 +97,17 @@ struct ChangePasswordScreen: View {
|
||||
.foregroundColor(theme.colors.secondaryContent)
|
||||
}
|
||||
.onTapGesture(perform: toggleSignoutAllDevices)
|
||||
.padding(.top, 8)
|
||||
|
||||
Text(viewModel.viewState.passwordRequirements)
|
||||
.font(theme.fonts.body)
|
||||
.multilineTextAlignment(.leading)
|
||||
.foregroundColor(theme.colors.secondaryContent)
|
||||
.accessibilityIdentifier("passwordRequirementsLabel")
|
||||
.padding(.top, 8)
|
||||
.padding(.bottom, 16)
|
||||
.padding(.vertical, 8)
|
||||
|
||||
if BWIBuildSettings.shared.showPasswordRequirements {
|
||||
Text(viewModel.viewState.passwordRequirements)
|
||||
.font(theme.fonts.body)
|
||||
.multilineTextAlignment(.leading)
|
||||
.foregroundColor(theme.colors.secondaryContent)
|
||||
.accessibilityIdentifier("passwordRequirementsLabel")
|
||||
.padding(.top, 8)
|
||||
.padding(.bottom, 16)
|
||||
}
|
||||
Button(action: submit) {
|
||||
Text(VectorL10n.save)
|
||||
// bwi: use buttonStyle font color
|
||||
|
||||
Reference in New Issue
Block a user