fix(backen): Incorrect refactor
This commit is contained in:
parent
5a44e2acce
commit
59242f16cd
1 changed files with 1 additions and 4 deletions
|
@ -461,10 +461,7 @@ UserModel.prototype.passwordSignIn = async function (req) {
|
|||
* have their password and we know it's good, let's rehash it the v3 way
|
||||
* if this happens to be a v2 user.
|
||||
*/
|
||||
if (updatedPasswordField) {
|
||||
update.password = updatedPasswordField
|
||||
await this.update(update)
|
||||
}
|
||||
if (updatedPasswordField) await this.update({ password: updatedPasswordField })
|
||||
|
||||
/*
|
||||
* Final check for account status and other things before returning
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue