mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-23 11:56:00 +01:00
normalize email on password change
This commit is contained in:
parent
0c3fbeb0b7
commit
555d40408d
2
jslib
2
jslib
@ -1 +1 @@
|
||||
Subproject commit 6920cf77b9373ed25f882ce68f17dde582e0a5be
|
||||
Subproject commit 739d308498ab68df3e37772265733c81b27f2cc2
|
@ -95,7 +95,8 @@ export class ChangePasswordComponent implements OnInit {
|
||||
const email = await this.userService.getEmail();
|
||||
const kdf = await this.userService.getKdf();
|
||||
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);
|
||||
const newEncKey = await this.cryptoService.remakeEncKey(newKey);
|
||||
request.key = newEncKey[1].encryptedString;
|
||||
|
Loading…
Reference in New Issue
Block a user