mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 05:40:31 +00:00
fix: reset password bug.
This commit is contained in:
@@ -279,7 +279,7 @@ export default class AuthenticationService implements IAuthenticationService {
|
||||
const hashedPassword = await hashPassword(password);
|
||||
|
||||
this.logger.info('[reset_password] saving a new hashed password.');
|
||||
await systemUserRepository.edit(user.id, { password: hashedPassword });
|
||||
await systemUserRepository.update({ password: hashedPassword }, { id: user.id });
|
||||
|
||||
// Deletes the used token.
|
||||
await this.deletePasswordResetToken(tokenModel.email);
|
||||
|
||||
Reference in New Issue
Block a user