Skip to content

Commit

Permalink
fix(server): decode uri component before verify token (#6231)
Browse files Browse the repository at this point in the history
  • Loading branch information
forehalo committed Mar 20, 2024
1 parent 5f59d55 commit 9916cca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/backend/server/src/core/auth/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down

0 comments on commit 9916cca

Please sign in to comment.