1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-11 14:04:03 +00:00

feat(change-password-component): Change Password Update [18720] - Adding more content for the routing.

This commit is contained in:
Patrick Pimentel
2025-05-28 10:56:16 -04:00
parent ec81662dcf
commit 5e2e0dda8e
4 changed files with 25 additions and 7 deletions

View File

@@ -65,11 +65,14 @@ export const authGuard: CanActivateFn = async (
return router.createUrlTree(["/set-password"]);
}
if (
forceSetPasswordReason !== ForceSetPasswordReason.None &&
!routerState.url.includes("update-temp-password")
) {
return router.createUrlTree(["/update-temp-password"]);
if (forceSetPasswordReason !== ForceSetPasswordReason.None) {
if (!routerState.url.includes("update-temp-password")) {
return router.createUrlTree(["/update-temp-password"]);
}
if (!routerState.url.includes("change-password")) {
return router.createUrlTree(["/change-password"]);
}
}
return true;