mirror of
https://github.com/toeverything/AFFiNE.git
synced 2025-01-03 02:15:47 +03:00
fix(server): decode uri component before verify token (#6231)
This commit is contained in:
parent
06a5b2e5a5
commit
4f5907766f
@ -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, {
|
||||
|
Loading…
Reference in New Issue
Block a user