Skip to content

Commit

Permalink
fix(core): Fix the url sent in the password-reset emails (#6466)
Browse files Browse the repository at this point in the history
  • Loading branch information
netroy committed Jun 17, 2023
1 parent 7f6da26 commit c5d2281
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cli/src/controllers/passwordReset.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,14 @@ export class PasswordResetController {

const baseUrl = getInstanceBaseUrl();
const { id, firstName, lastName } = user;
const url = UserService.generatePasswordResetUrl(user);
const url = await UserService.generatePasswordResetUrl(user);

try {
await this.mailer.passwordReset({
email,
firstName,
lastName,
passwordResetUrl: url.toString(),
passwordResetUrl: url,
domain: baseUrl,
});
} catch (error) {
Expand Down

0 comments on commit c5d2281

Please sign in to comment.