mirror of
https://github.com/bitwarden/browser
synced 2026-02-28 10:33:31 +00:00
feat(change-password-component): Change Password Update [18720] - Found a bug, working on password policy being present on login.
This commit is contained in:
@@ -105,7 +105,7 @@ export class PasswordLoginStrategy extends LoginStrategy {
|
||||
if (
|
||||
await this.configService.getFeatureFlag(FeatureFlag.PM16117_ChangeExistingPasswordRefactor)
|
||||
) {
|
||||
data.passwordPolicy = credentials.masterPasswordPolicies;
|
||||
data.passwordPolicy = credentials.masterPasswordPoliciesFromOrgInvite;
|
||||
}
|
||||
|
||||
this.cache.next(data);
|
||||
@@ -183,9 +183,9 @@ export class PasswordLoginStrategy extends LoginStrategy {
|
||||
if (
|
||||
await this.configService.getFeatureFlag(FeatureFlag.PM16117_ChangeExistingPasswordRefactor)
|
||||
) {
|
||||
// Take credentials from a potential org invite first, then take from
|
||||
masterPasswordPolicyOptions = credentials.masterPasswordPolicies
|
||||
? credentials.masterPasswordPolicies
|
||||
// !IMPORTANT! Take credentials from a potential org invite first, then take from
|
||||
masterPasswordPolicyOptions = credentials.masterPasswordPoliciesFromOrgInvite
|
||||
? credentials.masterPasswordPoliciesFromOrgInvite
|
||||
: this.getMasterPasswordPolicyOptionsFromResponse(identityResponse);
|
||||
|
||||
if (!masterPasswordPolicyOptions?.enforceOnLogin) {
|
||||
|
||||
@@ -16,7 +16,7 @@ export class PasswordLoginCredentials {
|
||||
public email: string,
|
||||
public masterPassword: string,
|
||||
public twoFactor?: TokenTwoFactorRequest,
|
||||
public masterPasswordPolicies?: MasterPasswordPolicyOptions,
|
||||
public masterPasswordPoliciesFromOrgInvite?: MasterPasswordPolicyOptions,
|
||||
) {}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user