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:
Arnfried Griesert
2024-03-13 14:24:30 +00:00
2 changed files with 13 additions and 9 deletions

View File

@@ -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
}

View File

@@ -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