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

Commit 6bee9db

Browse files
authored
Merge pull request #555 from wordpress-mobile/ctarda/issue/redirect-email
Implement support for navigating to login with email address for self-hosted sites
2 parents 7099abe + af22630 commit 6bee9db

File tree

4 files changed

+12
-3
lines changed

4 files changed

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

66
s.description = <<-DESC

WordPressAuthenticator/Authenticator/WordPressAuthenticatorResult.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ public enum WordPressAuthenticatorResult {
1717
///
1818
case presentPasswordController(value: Bool)
1919

20+
/// Present the view controller requesting the email address
21+
/// associated to the user's wordpress.com account
22+
///
23+
case presentEmailController
24+
2025
/// A view controller to be inserted into the navigation stack
2126
///
2227
case injectViewController(value: UIViewController)

WordPressAuthenticator/Signin/LoginSiteAddressViewController.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,10 @@ class LoginSiteAddressViewController: LoginViewController, NUXKeyboardResponder
235235
self.showSelfHostedUsernamePassword()
236236
}
237237

238-
self.showWPUsernamePassword()
239-
238+
self.showWPUsernamePassword()
239+
case .presentEmailController:
240+
// This case is only used for UL&S
241+
break
240242
case .injectViewController(_):
241243
// This case is only used for UL&S
242244
break

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,8 @@ private extension SiteAddressViewController {
513513
}
514514

515515
self.showWPUsernamePassword()
516+
case .presentEmailController:
517+
self.showGetStarted()
516518
case let .injectViewController(customUI):
517519
self.pushCustomUI(customUI)
518520
}

0 commit comments

Comments
 (0)