From 0363ea76ad607e385118a55371c4daf495b1c77e Mon Sep 17 00:00:00 2001 From: Jorge Leandro Perez Date: Tue, 14 Aug 2018 16:09:51 -0300 Subject: [PATCH 1/2] Login2FAViewController: Fixing iOS 12 Crash --- WordPressAuthenticator/Signin/Login2FAViewController.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 } From f6c09930bacfcbc2ea83bde88e8e04982dba9476 Mon Sep 17 00:00:00 2001 From: Jorge Leandro Perez Date: Thu, 16 Aug 2018 09:51:51 -0300 Subject: [PATCH 2/2] Increasing version to Mark 1.0.6 --- WordPressAuthenticator.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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