File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -891,6 +891,15 @@ RestWrite.prototype.createSessionTokenIfNeeded = async function () {
891
891
if ( this . auth . user && this . data . authData ) {
892
892
return ;
893
893
}
894
+ if (
895
+ ! this . storage . authProvider && // signup call, with
896
+ this . config . preventLoginWithUnverifiedEmail && // no login without verification
897
+ this . config . verifyUserEmails
898
+ ) {
899
+ // verification is on
900
+ this . storage . rejectSignup = true ;
901
+ return ;
902
+ }
894
903
if ( ! this . storage . authProvider && this . config . verifyUserEmails ) {
895
904
let shouldPreventUnverifedLogin = this . config . preventLoginWithUnverifiedEmail ;
896
905
if ( typeof this . config . preventLoginWithUnverifiedEmail === 'function' ) {
@@ -909,15 +918,6 @@ RestWrite.prototype.createSessionTokenIfNeeded = async function () {
909
918
return ;
910
919
}
911
920
}
912
- if (
913
- ! this . storage . authProvider && // signup call, with
914
- this . config . preventLoginWithUnverifiedEmail && // no login without verification
915
- this . config . verifyUserEmails
916
- ) {
917
- // verification is on
918
- this . storage . rejectSignup = true ;
919
- return ;
920
- }
921
921
return this . createSessionToken ( ) ;
922
922
} ;
923
923
You can’t perform that action at this time.
0 commit comments