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

Commit ac1d4e8

Browse files
Merge pull request #663 from wordpress-mobile/wcios/dontClearSiteCredentials
[Sign in with site credentials] - Don't clear username and password after an invalid login attempt.
2 parents 5066ac0 + 440fc37 commit ac1d4e8

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

WordPressAuthenticator.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Pod::Spec.new do |s|
44
s.name = 'WordPressAuthenticator'
5-
s.version = '2.2.0-beta.2'
5+
s.version = '2.2.0-beta.3'
66

77
s.summary = 'WordPressAuthenticator implements an easy and elegant way to authenticate your WordPress Apps.'
88
s.description = <<-DESC

WordPressAuthenticator/Unified Auth/View Related/Reusable Views/TextFieldTableViewCell.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,13 @@ final class TextFieldTableViewCell: UITableViewCell {
5656
override func prepareForReuse() {
5757
super.prepareForReuse()
5858

59+
textField.keyboardType = .default
60+
textField.returnKeyType = .default
61+
setSecureTextEntry(false)
62+
showSecureTextEntryToggle = false
5963
textField.rightView = nil
64+
textField.accessibilityLabel = nil
65+
textField.accessibilityIdentifier = nil
6066
}
6167
}
6268

WordPressAuthenticator/Unified Auth/View Related/Site Address/SiteCredentialsViewController.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,8 @@ private extension SiteCredentialsViewController {
280280
///
281281
func configureUsernameTextField(_ cell: TextFieldTableViewCell) {
282282
cell.configure(withStyle: .username,
283-
placeholder: WordPressAuthenticator.shared.displayStrings.usernamePlaceholder)
283+
placeholder: WordPressAuthenticator.shared.displayStrings.usernamePlaceholder,
284+
text: loginFields.username)
284285

285286
// Save a reference to the textField so it can becomeFirstResponder.
286287
usernameField = cell.textField
@@ -302,7 +303,8 @@ private extension SiteCredentialsViewController {
302303
///
303304
func configurePasswordTextField(_ cell: TextFieldTableViewCell) {
304305
cell.configure(withStyle: .password,
305-
placeholder: WordPressAuthenticator.shared.displayStrings.passwordPlaceholder)
306+
placeholder: WordPressAuthenticator.shared.displayStrings.passwordPlaceholder,
307+
text: loginFields.password)
306308
passwordField = cell.textField
307309
cell.textField.delegate = self
308310
cell.onChangeSelectionHandler = { [weak self] textfield in

0 commit comments

Comments
 (0)