1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-15 16:05:03 +00:00
This commit is contained in:
Bernd Schoolmann
2025-02-24 19:59:22 +01:00
parent 754ebcaef9
commit 8ee5fb2cbc
34 changed files with 187 additions and 139 deletions

View File

@@ -209,7 +209,7 @@ export class SetPasswordComponent extends BaseChangePasswordComponent implements
// RSA Encrypt user key with organization public key
const userKey = await this.keyService.getUserKey();
const encryptedUserKey = await this.encryptService.rsaEncrypt(userKey.key, publicKey);
const encryptedUserKey = await this.encryptService.rsaEncrypt(userKey.toEncoded(), publicKey);
const resetRequest = new OrganizationUserResetPasswordEnrollmentRequest();
resetRequest.masterPasswordHash = masterPasswordHash;