core: always lowercase email address when resetting password

This commit is contained in:
Abdullah Atta
2026-06-25 13:09:19 +05:00
parent 5a0ca0bed9
commit aceb6db8b8

View File

@@ -696,7 +696,9 @@ class UserManager {
`${constants.API_HOST}/users/password/${type}`,
{
oldPassword: oldPassword,
newPassword: await this.db.storage().hash(new_password, email),
newPassword: await this.db
.storage()
.hash(new_password, email.toLowerCase()),
userKeys: updateUserPayload
},
token