Password reset fixes

This commit is contained in:
Ali
2021-07-06 13:49:02 +04:00
parent 6dc3962307
commit 862eb86cae
3 changed files with 26 additions and 8 deletions

View File

@@ -129,9 +129,9 @@ final class AuthorizationSequencePasswordEntryController: ViewController {
}
func forgotPressed() {
if self.suggestReset {
/*if self.suggestReset {
self.present(standardTextAlertController(theme: AlertControllerTheme(presentationData: self.presentationData), title: nil, text: self.presentationData.strings.TwoStepAuth_RecoveryFailed, actions: [TextAlertAction(type: .defaultAction, title: self.presentationData.strings.Common_OK, action: {})]), in: .window(.root))
} else if self.didForgotWithNoRecovery {
} else*/ if self.didForgotWithNoRecovery {
self.present(standardTextAlertController(theme: AlertControllerTheme(presentationData: self.presentationData), title: nil, text: self.presentationData.strings.TwoStepAuth_RecoveryUnavailable, actions: [TextAlertAction(type: .defaultAction, title: self.presentationData.strings.Common_OK, action: {})]), in: .window(.root))
} else {
self.forgot?()