diff --git a/jslib b/jslib index 6920cf77b93..739d308498a 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 6920cf77b9373ed25f882ce68f17dde582e0a5be +Subproject commit 739d308498ab68df3e37772265733c81b27f2cc2 diff --git a/src/app/settings/change-password.component.ts b/src/app/settings/change-password.component.ts index bbe479df156..1c9b4774c87 100644 --- a/src/app/settings/change-password.component.ts +++ b/src/app/settings/change-password.component.ts @@ -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;