fix: Parse Server option emailVerifyTokenReuseIfValid: true generates new token on every email verification request (#8885)

This commit is contained in:
Manuel
2024-01-14 01:37:20 +01:00
committed by GitHub
parent 4aba66c620
commit 0023ce448a
3 changed files with 8 additions and 8 deletions

View File

@@ -209,7 +209,7 @@ export class UserController extends AdaptableController {
_email_verify_token &&
new Date() < new Date(_email_verify_token_expires_at)
) {
return Promise.resolve();
return Promise.resolve(true);
}
const shouldSend = await this.setEmailVerifyToken(user, {
object: Parse.User.fromJSON(Object.assign({ className: '_User' }, user)),