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

Commit ae1d03d

Browse files
committed
Update openForgotPasswordURL to be public to allow WCiOS to reuse the flow for resetting password.
1 parent 8121ebd commit ae1d03d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WordPressAuthenticator/Authenticator/WordPressAuthenticator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ import WordPressKit
446446
///
447447
/// - Parameter loginFields: A LoginFields instance.
448448
///
449-
class func openForgotPasswordURL(_ loginFields: LoginFields) {
449+
public class func openForgotPasswordURL(_ loginFields: LoginFields) {
450450
let baseURL = loginFields.meta.userIsDotCom ? "https://wordpress.com" : WordPressAuthenticator.baseSiteURL(string: loginFields.siteAddress)
451451
let forgotPasswordURL = URL(string: baseURL + "/wp-login.php?action=lostpassword&redirect_to=wordpress%3A%2F%2F")!
452452
UIApplication.shared.open(forgotPasswordURL)

0 commit comments

Comments
 (0)