mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
normalize email on password change
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: 6920cf77b9...739d308498
@@ -95,7 +95,8 @@ export class ChangePasswordComponent implements OnInit {
|
|||||||
const email = await this.userService.getEmail();
|
const email = await this.userService.getEmail();
|
||||||
const kdf = await this.userService.getKdf();
|
const kdf = await this.userService.getKdf();
|
||||||
const kdfIterations = await this.userService.getKdfIterations();
|
const kdfIterations = await this.userService.getKdfIterations();
|
||||||
const newKey = await this.cryptoService.makeKey(this.newMasterPassword, email, kdf, kdfIterations);
|
const newKey = await this.cryptoService.makeKey(this.newMasterPassword, email.trim().toLowerCase(),
|
||||||
|
kdf, kdfIterations);
|
||||||
request.newMasterPasswordHash = await this.cryptoService.hashPassword(this.newMasterPassword, newKey);
|
request.newMasterPasswordHash = await this.cryptoService.hashPassword(this.newMasterPassword, newKey);
|
||||||
const newEncKey = await this.cryptoService.remakeEncKey(newKey);
|
const newEncKey = await this.cryptoService.remakeEncKey(newKey);
|
||||||
request.key = newEncKey[1].encryptedString;
|
request.key = newEncKey[1].encryptedString;
|
||||||
|
|||||||
Reference in New Issue
Block a user