-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add optional forgot password link #408
Conversation
Added an additional property to show/hide the TOS button (Ref: #162). The default value is set to |
@prvnl sorry it took so long to address this issue!. Since this PR cannot be merged, i've created a new branch, and cherry picked all of your commits here. I've introduced a couple modifications:
Usage would be:
Thanks so much for helping us out!. Only pending is OSX, which will be addressed shortly. |
Implements Forgot Password on iOS
@jleandroperez you're welcome! I'll give it a try the coming week, thanks for all the work! |
@prvnl awesome! thank you sir! |
@jleandroperez it works great, nice modifications! Thanks for making this generally available in the framework! If someone is interested in a forgot password mechanism for Simperium, they could use the basis of https://github.com/prvnl/simperium-user-manager to support this feature. |
@prvnl Thank you Patrick!! |
With this PR, you can add an optional Forgot Password button to the Login ViewController (Ref: #155). This button is only shown when is explicitly activated and an valid URL is supplied using a localized string. By using the localized string, you can set specific URL's per language. This forgot password button switches place with the TOS button, so it doesn't take extra space in the Login ViewController.
To activate the button use:
[SPAuthenticationConfiguration sharedInstance].showForgotPasswordButton = YES;
The localized string that should be used for the Forgot Password URL is:
"Forgot Password URL"
This PR also changes the TOS URL to a localized custom TOS URL using:
"TOS URL"
. if it's not supplied and/or valid, it uses the default Simperium TOS.Hope it helps!
Regards Patrick