fix(server): decode uri component before verify token (#6231)

This commit is contained in:
liuyi 2024-03-20 18:15:52 +08:00 committed by forehalo
parent 06a5b2e5a5
commit 4f5907766f
No known key found for this signature in database

View File

@ -141,6 +141,7 @@ export class AuthController {
}
email = decodeURIComponent(email);
token = decodeURIComponent(token);
validators.assertValidEmail(email);
const valid = await this.token.verifyToken(TokenType.SignIn, token, {