mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-23 12:49:09 +00:00
fix(core): Fix the url sent in the password-reset emails (#6466)
This commit is contained in:
committed by
GitHub
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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user