Conditional email verification not working in some scenarios #8839
Labels
state:released
Released as stable version
state:released-alpha
Released as alpha version
state:released-beta
Released as beta version
New Issue Checklist
Issue Description
Conditional email verification with functions for
verifyUserEmails
,preventLoginWithUnverifiedEmail
is not working in some scenarios. That is becauseverifyUserEmails
andpreventLoginWithUnverifiedEmail
can be functions since #8425, but the Parse Server code has not been updated in all places. For example, in some places the value forverifyUserEmails
is still checked withif (this.config.verifyUserEmails) { ... }
which doesn't work if the Parse Server options is set to a function.For example, this configuration works as expected on sign up and returns error HTTP 205
User email is not verified.
:But this configuration does not work as expected on sign up and instead returns HTTP 201 with the Parse.User object:
Environment
Server
7.0.0-alpha.2
The text was updated successfully, but these errors were encountered: