1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

[Reset Password v1] Update Temp Password (#1111)

* [Reset Password v1] Update Temp Password

* Updated event string

* updated jslib

Co-authored-by: addison <addisonbeck1@gmail.com>
This commit is contained in:
Vincent Salucci
2021-08-10 07:10:54 -05:00
committed by GitHub
parent 9bdda9cc4c
commit 3857ee2370
8 changed files with 134 additions and 1 deletions

View File

@@ -88,6 +88,10 @@ export class VaultComponent implements OnInit, OnDestroy {
const queryParamsSub = this.route.queryParams.subscribe(async params => {
await this.syncService.fullSync(false);
if (await this.userService.getForcePasswordReset()) {
this.router.navigate(['update-temp-password']);
}
this.showUpdateKey = !(await this.cryptoService.hasEncKey());
const canAccessPremium = await this.userService.canAccessPremium();
this.showPremiumCallout = !this.showVerifyEmail && !canAccessPremium &&