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

Commit 7099abe

Browse files
Merge pull request #552 from wordpress-mobile/try/improve-safari-credentials-update
Removes the calls to update SafariCredentials.
2 parents 046c43c + b9540fe commit 7099abe

File tree

6 files changed

+1
-33
lines changed

6 files changed

+1
-33
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.33.0-beta.1"
3+
s.version = "1.33.0-beta.2"
44
s.summary = "WordPressAuthenticator implements an easy and elegant way to authenticate your WordPress Apps."
55

66
s.description = <<-DESC

WordPressAuthenticator/NUX/NUXLinkAuthViewController.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,4 @@ class NUXLinkAuthViewController: LoginViewController {
5252
override func configureStatusLabel(_ message: String) {
5353
statusLabel?.text = message
5454
}
55-
56-
override func updateSafariCredentialsIfNeeded() {
57-
// Noop
58-
}
5955
}

WordPressAuthenticator/Signin/LoginSelfHostedViewController.swift

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -226,13 +226,6 @@ class LoginSelfHostedViewController: LoginViewController, NUXKeyboardResponder {
226226
// MARK: - Instance Methods
227227

228228

229-
/// Noop. Required by the SigninWPComSyncHandler protocol but the self-hosted
230-
/// controller's implementation does not use safari saved credentials.
231-
///
232-
override func updateSafariCredentialsIfNeeded() {
233-
}
234-
235-
236229
/// Validates what is entered in the various form fields and, if valid,
237230
/// proceeds with the submit action.
238231
///

WordPressAuthenticator/Signin/LoginUsernamePasswordViewController.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -206,14 +206,6 @@ class LoginUsernamePasswordViewController: LoginViewController, NUXKeyboardRespo
206206

207207
// MARK: - Instance Methods
208208

209-
210-
/// Noop. Required by the SigninWPComSyncHandler protocol but the self-hosted
211-
/// controller's implementation does not use safari saved credentials.
212-
///
213-
override func updateSafariCredentialsIfNeeded() {
214-
}
215-
216-
217209
/// Validates what is entered in the various form fields and, if valid,
218210
/// proceeds with the submit action.
219211
///

WordPressAuthenticator/Signin/LoginViewController.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -220,12 +220,6 @@ open class LoginViewController: NUXViewController, LoginFacadeDelegate {
220220

221221
presentUnified2FA()
222222
}
223-
224-
// Update safari stored credentials. Call after a successful sign in.
225-
///
226-
func updateSafariCredentialsIfNeeded() {
227-
SafariCredentialsService.updateSafariCredentialsIfNeeded(with: loginFields)
228-
}
229223

230224
private enum LocalizedText {
231225
static let loginError = NSLocalizedString("Whoops, something went wrong and we couldn't log you in. Please try again!", comment: "An error message shown when a wpcom user provides the wrong password.")
@@ -261,8 +255,6 @@ extension LoginViewController {
261255
/// Signals the Main App to synchronize the specified WordPress.com account.
262256
///
263257
private func syncWPCom(credentials: AuthenticatorCredentials, completion: (() -> ())? = nil) {
264-
SafariCredentialsService.updateSafariCredentialsIfNeeded(with: loginFields)
265-
266258
configureStatusLabel(LocalizedText.gettingAccountInfo)
267259

268260
authenticationDelegate.sync(credentials: credentials) { [weak self] in

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,6 @@ final class SiteCredentialsViewController: LoginViewController {
150150
}
151151
}
152152

153-
/// No-op. Required by the SigninWPComSyncHandler protocol but the self-hosted
154-
/// controller's implementation does not use safari saved credentials.
155-
///
156-
override func updateSafariCredentialsIfNeeded() {}
157-
158153
/// No-op. Required by LoginFacade.
159154
func displayLoginMessage(_ message: String) {}
160155
}

0 commit comments

Comments
 (0)