diff --git a/WordPressAuthenticator.podspec b/WordPressAuthenticator.podspec index 16624b497..6a1da72d9 100644 --- a/WordPressAuthenticator.podspec +++ b/WordPressAuthenticator.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "WordPressAuthenticator" - s.version = "1.0.5" + s.version = "1.0.6" s.summary = "WordPressAuthenticator implements an easy and elegant way to authenticate your WordPress Apps." s.description = <<-DESC diff --git a/WordPressAuthenticator/Signin/Login2FAViewController.swift b/WordPressAuthenticator/Signin/Login2FAViewController.swift index 8f0ffe4c2..e7d16a3af 100644 --- a/WordPressAuthenticator/Signin/Login2FAViewController.swift +++ b/WordPressAuthenticator/Signin/Login2FAViewController.swift @@ -193,7 +193,7 @@ class Login2FAViewController: LoginViewController, NUXKeyboardResponder, UITextF // because the string was stripped of whitespace, we can't return true and we update the textfield ourselves textField.text = cleanedCode - handleTextFieldDidChange() + handleTextFieldDidChange(textField) case .invalid(nonNumbers: true): displayError(message: NSLocalizedString("A verification code will only contain numbers.", comment: "Shown when a user types a non-number into the two factor field.")) default: @@ -231,7 +231,7 @@ class Login2FAViewController: LoginViewController, NUXKeyboardResponder, UITextF return false } - func handleTextFieldDidChange() { + @IBAction func handleTextFieldDidChange(_ sender: UITextField) { loginFields.multifactorCode = verificationCodeField.nonNilTrimmedText() configureSubmitButton(animating: false) } @@ -283,7 +283,7 @@ class Login2FAViewController: LoginViewController, NUXKeyboardResponder, UITextF case .valid(let cleanedCode): displayError(message: "") verificationCodeField.text = cleanedCode - handleTextFieldDidChange() + handleTextFieldDidChange(verificationCodeField) default: break }