mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-07-09 20:09:36 +02:00
core: always lowercase email address when resetting password
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user