1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-02 17:53:41 +00:00

[PM-27086] rename flag variable name for clarity

This commit is contained in:
rr-bw
2026-01-13 14:22:22 -08:00
parent e592912711
commit e418a623b5
3 changed files with 11 additions and 8 deletions

View File

@@ -208,11 +208,14 @@ export class SetInitialPasswordComponent implements OnInit {
// }
// KM flag OFF, Auth flag ON
if (passwordInputResult.newApisFlagEnabled && !passwordInputResult.newMasterKey) {
if (
passwordInputResult.newApisWithInputPasswordFlagEnabled &&
!passwordInputResult.newMasterKey
) {
/**
* If the newApisFlag is enabled, it means the InputPasswordComponent will not emit a
* newMasterKey, newServerMasterKeyHash, and newLocalMasterKeyHash. So we must create
* them here and add them late to the PasswordInputResult before calling setInitialPassword().
* If the newApisWithInputPasswordFlagEnabled is enabled, it means the InputPasswordComponent
* will not emit a newMasterKey, newServerMasterKeyHash, and newLocalMasterKeyHash. So we must
* create them here and add them late to the PasswordInputResult before calling setInitialPassword().
*/
const newMasterKey = await this.keyService.makeMasterKey(