1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 00:33:44 +00:00

handle master password input focus

This commit is contained in:
rr-bw
2024-09-09 09:51:06 -07:00
parent 70d15fb4d2
commit 00a29b3795
2 changed files with 14 additions and 7 deletions

View File

@@ -31,6 +31,7 @@ import {
ButtonModule,
CheckboxModule,
FormFieldModule,
IconButtonModule,
ToastService,
} from "@bitwarden/components";
@@ -45,6 +46,7 @@ import { LoginService } from "./login.service";
CheckboxModule,
CommonModule,
FormFieldModule,
IconButtonModule,
JslibModule,
ReactiveFormsModule,
RouterModule,
@@ -117,12 +119,11 @@ export class LoginComponentV2 implements OnInit, OnDestroy {
if (this.clientType === ClientType.Web) {
// If there's an existing org invite, use it to get the password policies
const { policies, isPolicyAndAutoEnrollEnabled, enforcedPasswordPolicyOptions } =
await this.loginService.getOrgPolicies();
const orgPolicies = await this.loginService.getOrgPolicies();
this.policies = policies;
this.showResetPasswordAutoEnrollWarning = isPolicyAndAutoEnrollEnabled;
this.enforcedPasswordPolicyOptions = enforcedPasswordPolicyOptions;
this.policies = orgPolicies?.policies;
this.showResetPasswordAutoEnrollWarning = orgPolicies?.isPolicyAndAutoEnrollEnabled;
this.enforcedPasswordPolicyOptions = orgPolicies?.enforcedPasswordPolicyOptions;
}
}