Skip to content

Commit

Permalink
fix(users): lowercase email on account recovery
Browse files Browse the repository at this point in the history
  • Loading branch information
sg-gs authored Jan 8, 2025
1 parent 9a2068d commit 493c2fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/user/user.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ export class UserController {
@Res({ passthrough: true }) res: Response,
) {
try {
await this.userUseCases.sendAccountRecoveryEmail(body.email);
await this.userUseCases.sendAccountRecoveryEmail(body.email.toLowerCase());
} catch (err) {
new Logger().error(
`[USERS/RECOVER_ACCOUNT_REQUEST] ERROR: ${
Expand Down

0 comments on commit 493c2fb

Please sign in to comment.