diff --git a/submodules/PasswordSetupUI/Sources/SetupTwoStepVerificationContentNode.swift b/submodules/PasswordSetupUI/Sources/SetupTwoStepVerificationContentNode.swift index 80a45ac163..66d8233c0c 100644 --- a/submodules/PasswordSetupUI/Sources/SetupTwoStepVerificationContentNode.swift +++ b/submodules/PasswordSetupUI/Sources/SetupTwoStepVerificationContentNode.swift @@ -67,7 +67,9 @@ final class SetupTwoStepVerificationContentNode: ASDisplayNode, UITextFieldDeleg self.inputNode.textField.autocapitalizationType = .none self.inputNode.textField.autocorrectionType = .no if #available(iOSApplicationExtension 12.0, iOS 12.0, *) { + #if DEBUG self.inputNode.textField.textContentType = .newPassword + #endif } case .text: break diff --git a/submodules/PasswordSetupUI/Sources/TwoFactorAuthDataInputScreen.swift b/submodules/PasswordSetupUI/Sources/TwoFactorAuthDataInputScreen.swift index bed5cfbedc..df15d41c55 100644 --- a/submodules/PasswordSetupUI/Sources/TwoFactorAuthDataInputScreen.swift +++ b/submodules/PasswordSetupUI/Sources/TwoFactorAuthDataInputScreen.swift @@ -1081,6 +1081,7 @@ private final class TwoFactorDataInputTextNode: ASDisplayNode, UITextFieldDelega self.inputNode.textField.returnKeyType = .next } if #available(iOS 12.0, *) { + #if DEBUG if !confirmation, let phoneNumber { let shadowInputNode = TextFieldNode() shadowInputNode.textField.font = Font.regular(17.0) @@ -1092,9 +1093,12 @@ private final class TwoFactorDataInputTextNode: ASDisplayNode, UITextFieldDelega shadowInputNode.textField.textContentType = .username shadowInputNode.textField.text = phoneNumber } + #endif + #if DEBUG self.inputNode.textField.textContentType = .newPassword self.inputNode.textField.passwordRules = UITextInputPasswordRules(descriptor: "minlength: 8;") + #endif } self.hideButtonNode.isHidden = confirmation case .email: