From ae1d03d702cb1727a20ed726717af2c6c6043864 Mon Sep 17 00:00:00 2001 From: Jaclyn Chen Date: Wed, 17 Aug 2022 16:53:38 +0800 Subject: [PATCH 1/2] Update `openForgotPasswordURL` to be public to allow WCiOS to reuse the flow for resetting password. --- .../Authenticator/WordPressAuthenticator.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WordPressAuthenticator/Authenticator/WordPressAuthenticator.swift b/WordPressAuthenticator/Authenticator/WordPressAuthenticator.swift index 813ac73fb..7a0c2ceea 100644 --- a/WordPressAuthenticator/Authenticator/WordPressAuthenticator.swift +++ b/WordPressAuthenticator/Authenticator/WordPressAuthenticator.swift @@ -446,7 +446,7 @@ import WordPressKit /// /// - Parameter loginFields: A LoginFields instance. /// - class func openForgotPasswordURL(_ loginFields: LoginFields) { + public class func openForgotPasswordURL(_ loginFields: LoginFields) { let baseURL = loginFields.meta.userIsDotCom ? "https://wordpress.com" : WordPressAuthenticator.baseSiteURL(string: loginFields.siteAddress) let forgotPasswordURL = URL(string: baseURL + "/wp-login.php?action=lostpassword&redirect_to=wordpress%3A%2F%2F")! UIApplication.shared.open(forgotPasswordURL) From b6965adde51fb7ce26eefb4dd6aa616677d6f282 Mon Sep 17 00:00:00 2001 From: Jaclyn Chen Date: Wed, 17 Aug 2022 17:02:56 +0800 Subject: [PATCH 2/2] Bump pod version. --- WordPressAuthenticator.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WordPressAuthenticator.podspec b/WordPressAuthenticator.podspec index 50f3fa958..ce25ff4b8 100644 --- a/WordPressAuthenticator.podspec +++ b/WordPressAuthenticator.podspec @@ -2,7 +2,7 @@ Pod::Spec.new do |s| s.name = 'WordPressAuthenticator' - s.version = '2.2.1-beta.1' + s.version = '2.2.1-beta.2' s.summary = 'WordPressAuthenticator implements an easy and elegant way to authenticate your WordPress Apps.' s.description = <<-DESC