1
0
Fork 0
mirror of synced 2024-07-02 21:10:43 +12:00
This commit is contained in:
Adria Navarro 2024-01-03 12:08:18 +01:00
parent b09f941027
commit 4db5d9dab2

View file

@ -74,8 +74,8 @@ export const reset = async (email: string) => {
*/
export const resetUpdate = async (resetCode: string, password: string) => {
const { userId } = await cache.passwordReset.getCode(resetCode)
let user = await userSdk.db.getUser(userId)
let user = await userSdk.db.getUser(userId)
user.password = password
user = await userSdk.db.save(user)