1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-21 03:43:58 +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:
Patrick Pimentel
2025-06-05 15:24:43 -04:00
parent 2c7da3bb0f
commit 28da2c9615
5 changed files with 10 additions and 16 deletions

View File

@@ -236,6 +236,9 @@ export class LoginComponent implements OnInit, OnDestroy {
if (
await this.configService.getFeatureFlag(FeatureFlag.PM16117_ChangeExistingPasswordRefactor)
) {
// Try to retrieve any org policies from an org invite now so we can send it to the
// login strategies. Since it is optional and we only want to be doing this on the
// web we will only send in content in the right context.
const orgPoliciesFromInvite = this.loginComponentService.getOrgPoliciesFromOrgInvite
? await this.loginComponentService.getOrgPoliciesFromOrgInvite()
: null;
@@ -310,7 +313,7 @@ export class LoginComponent implements OnInit, OnDestroy {
This is now unsupported and requires a downgraded client */
this.toastService.showToast({
variant: "error",
title: this.i18nService.t("errorOccured"),
title: this.i18nService.t("errorOccurred"),
message: this.i18nService.t("legacyEncryptionUnsupported"),
});
return;