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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user