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 baseUrl = getInstanceBaseUrl();
|
||||||
const { id, firstName, lastName } = user;
|
const { id, firstName, lastName } = user;
|
||||||
const url = UserService.generatePasswordResetUrl(user);
|
const url = await UserService.generatePasswordResetUrl(user);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await this.mailer.passwordReset({
|
await this.mailer.passwordReset({
|
||||||
email,
|
email,
|
||||||
firstName,
|
firstName,
|
||||||
lastName,
|
lastName,
|
||||||
passwordResetUrl: url.toString(),
|
passwordResetUrl: url,
|
||||||
domain: baseUrl,
|
domain: baseUrl,
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
Loading…
Reference in a new issue