fix: standard object metadata override (#13215)
# Issue - fix #13156, related #13105 --------- Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
@@ -519,7 +519,7 @@ export class AuthResolver {
|
||||
return await this.resetPasswordService.sendEmailPasswordResetLink(
|
||||
resetToken,
|
||||
emailPasswordResetInput.email,
|
||||
context.req.headers['x-locale'] || SOURCE_LOCALE,
|
||||
context.req.locale,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -535,11 +535,7 @@ export class AuthResolver {
|
||||
passwordResetToken,
|
||||
);
|
||||
|
||||
await this.authService.updatePassword(
|
||||
id,
|
||||
newPassword,
|
||||
context.req.headers['x-locale'] || SOURCE_LOCALE,
|
||||
);
|
||||
await this.authService.updatePassword(id, newPassword, context.req.locale);
|
||||
|
||||
return await this.resetPasswordService.invalidatePasswordResetToken(id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user