mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix(core): Fix the url sent in the password-reset emails (#6466)
This commit is contained in:
parent
16e0df553c
commit
9978e2760b
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue