Add password validator to change password coordinator

This commit is contained in:
ismailgulek
2022-06-10 18:06:41 +03:00
parent 4f8d74eea3
commit 92e1b4d1d6
5 changed files with 35 additions and 9 deletions
@@ -97,9 +97,16 @@ struct ChangePasswordScreen: View {
Text(VectorL10n.authenticationChoosePasswordSignoutAllDevices)
.foregroundColor(theme.colors.secondaryContent)
}
.padding(.top, 8)
.padding(.bottom, 16)
.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)
Button(action: submit) {
Text(VectorL10n.save)