1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-20 03:13:55 +00:00

feat(change-password-component): Change Password Update [18720] - More touchups, very close to complete.

This commit is contained in:
Patrick Pimentel
2025-05-21 14:01:09 -04:00
parent 0d1b50a249
commit 4ccdebe984
11 changed files with 29 additions and 139 deletions

View File

@@ -98,7 +98,7 @@ export class WebLoginComponentService
const enforcedPasswordPolicyOptions = await firstValueFrom(
this.accountService.activeAccount$.pipe(
getUserId,
switchMap((userId) => this.policyService.masterPasswordPolicyOptions$(userId)),
switchMap((userId) => this.policyService.masterPasswordPolicyOptions$(userId, policies)),
),
);

View File

@@ -3,7 +3,6 @@
</div>
<div class="tw-max-w-lg tw-mb-12">
<bit-callout type="warning">{{ "loggedOutWarning" | i18n }}</bit-callout>
<auth-change-password [inputPasswordFlow]="inputPasswordFlow"></auth-change-password>
</div>

View File

@@ -155,8 +155,10 @@ const routes: Routes = [
},
],
data: {
pageIcon: undefined,
pageIcon: LockIcon,
pageTitle: { key: "updateMasterPassword" },
hideFooter: true,
maxWidth: "lg",
} satisfies AnonLayoutWrapperData,
},
],
@@ -168,7 +170,7 @@ const routes: Routes = [
canActivate: [
canAccessFeature(
FeatureFlag.PM16117_ChangeExistingPasswordRefactor,
false,
true,
"/change-password",
false,
),
@@ -182,7 +184,7 @@ const routes: Routes = [
canActivate: [
canAccessFeature(
FeatureFlag.PM16117_ChangeExistingPasswordRefactor,
false,
true,
"/change-password",
false,
),

View File

@@ -1788,6 +1788,9 @@
"loggedOutWarning": {
"message": "Proceeding will log you out of your current session, requiring you to log back in. Active sessions on other devices may continue to remain active for up to one hour."
},
"changePasswordWarning": {
"message": "After changing your password, you will need to log in with your new password. Active sessions on other devices will be logged out within one hour."
},
"emailChanged": {
"message": "Email saved"
},