mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 03:12:15 +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 { 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) {
|
||||
|
||||
Reference in New Issue
Block a user