fix(core): Fix the url sent in the password-reset emails (#6466)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2023-06-17 10:23:22 +02:00 committed by GitHub
parent 16e0df553c
commit 9978e2760b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {