Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Commit d966f31

Browse files
Merge pull request #21 from wordpress-mobile/develop
WordPressAuthenticator Mark 1.0.6
2 parents 5c758ab + f6c0993 commit d966f31

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

WordPressAuthenticator.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "WordPressAuthenticator"
3-
s.version = "1.0.5"
3+
s.version = "1.0.6"
44
s.summary = "WordPressAuthenticator implements an easy and elegant way to authenticate your WordPress Apps."
55

66
s.description = <<-DESC

WordPressAuthenticator/Signin/Login2FAViewController.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ class Login2FAViewController: LoginViewController, NUXKeyboardResponder, UITextF
193193

194194
// because the string was stripped of whitespace, we can't return true and we update the textfield ourselves
195195
textField.text = cleanedCode
196-
handleTextFieldDidChange()
196+
handleTextFieldDidChange(textField)
197197
case .invalid(nonNumbers: true):
198198
displayError(message: NSLocalizedString("A verification code will only contain numbers.", comment: "Shown when a user types a non-number into the two factor field."))
199199
default:
@@ -231,7 +231,7 @@ class Login2FAViewController: LoginViewController, NUXKeyboardResponder, UITextF
231231
return false
232232
}
233233

234-
func handleTextFieldDidChange() {
234+
@IBAction func handleTextFieldDidChange(_ sender: UITextField) {
235235
loginFields.multifactorCode = verificationCodeField.nonNilTrimmedText()
236236
configureSubmitButton(animating: false)
237237
}
@@ -283,7 +283,7 @@ class Login2FAViewController: LoginViewController, NUXKeyboardResponder, UITextF
283283
case .valid(let cleanedCode):
284284
displayError(message: "")
285285
verificationCodeField.text = cleanedCode
286-
handleTextFieldDidChange()
286+
handleTextFieldDidChange(verificationCodeField)
287287
default:
288288
break
289289
}

0 commit comments

Comments
 (0)