Authorization improvements

This commit is contained in:
Ilya Laktyushin
2024-04-22 22:17:35 +04:00
parent 1f8e9b568a
commit f199fe9641
2 changed files with 3 additions and 3 deletions

View File

@@ -1040,7 +1040,7 @@ final class AuthorizationSequenceCodeEntryControllerNode: ASDisplayNode, UITextF
if let startsWith, !text.isEmpty {
let firstWord = text.components(separatedBy: " ").first ?? ""
if !firstWord.isEmpty && !startsWith.hasPrefix(firstWord) {
if self.errorTextNode.alpha.isZero, text.count < 3 {
if self.errorTextNode.alpha.isZero, text.count < 4 {
self.animateError(text: self.strings.Login_WrongPhraseError)
}
return false