Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion WordPressAuthenticator.podspec
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions WordPressAuthenticator/Signin/Login2FAViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)
}
Expand Down Expand Up @@ -283,7 +283,7 @@ class Login2FAViewController: LoginViewController, NUXKeyboardResponder, UITextF
case .valid(let cleanedCode):
displayError(message: "")
verificationCodeField.text = cleanedCode
handleTextFieldDidChange()
handleTextFieldDidChange(verificationCodeField)
default:
break
}
Expand Down