fix: Parse Server option emailVerifyTokenReuseIfValid: true generates new token on every email verification request (#8885)
This commit is contained in:
@@ -476,7 +476,7 @@ export class UsersRouter extends ClassesRouter {
|
||||
);
|
||||
}
|
||||
|
||||
const results = await req.config.database.find('_User', { email: email });
|
||||
const results = await req.config.database.find('_User', { email: email }, {}, Auth.maintenance(req.config));
|
||||
if (!results.length || results.length < 1) {
|
||||
throw new Parse.Error(Parse.Error.EMAIL_NOT_FOUND, `No user found with email ${email}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user