Skip to content

Stop requiring verifyUserEmails for password reset functionality #2166

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

Merged

Conversation

TylerBrock
Copy link
Contributor

@TylerBrock TylerBrock commented Jun 29, 2016

This patch allows password reset to work without requiring verifyUserEmails be true.

Currently, parse-server users verifyUserEmails within Config.validateEmailConfiguration() as a proxy for determining if an e-mail adapter was provided. That is not so great as verification of user e-mails should not be required for other e-mail based functionality to work.

Additionally this removes a hack and actually fixes the root cause of the bug in #1649 where we must verify that that appName is set for e-mail functionality to work. The spirit of the regression test for #1649 should be to check if appName is not set and fail instead of simply checking if verifyUserEmails is true.

Background: Our application uses password reset extensively but has a sign up flow that does not involve e-mail at all. It is imperative to us that password reset work without verifyUserEmails being set to true.

@TylerBrock TylerBrock force-pushed the verify-user-emails-fix branch from e9dc4f1 to 12d4b15 Compare June 29, 2016 01:51
@ghost
Copy link

ghost commented Jun 29, 2016

@TylerBrock updated the pull request.

@flovilmart
Copy link
Contributor

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants