Stop requiring verifyUserEmails for password reset functionality #2166
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.