1
0
Fork 0

fix(backen): Incorrect refactor

This commit is contained in:
joostdecock 2023-08-13 10:51:44 +02:00
parent 5a44e2acce
commit 59242f16cd

View file

@ -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 * 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 this happens to be a v2 user.
*/ */
if (updatedPasswordField) { if (updatedPasswordField) await this.update({ password: updatedPasswordField })
update.password = updatedPasswordField
await this.update(update)
}
/* /*
* Final check for account status and other things before returning * Final check for account status and other things before returning