This commit is contained in:
Adria Navarro 2024-01-03 12:08:18 +01:00
parent b09f941027
commit 4db5d9dab2
1 changed files with 1 additions and 1 deletions

View File

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