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

implement hasKey helper

This commit is contained in:
Kyle Spearrin
2018-06-13 17:14:26 -04:00
parent eda99e4f12
commit 3303e60b40
7 changed files with 18 additions and 16 deletions

View File

@@ -20,8 +20,8 @@ export class AuthGuardService implements CanActivate {
return false;
}
const key = await this.cryptoService.getKey();
if (key == null) {
const hasKey = await this.cryptoService.hasKey();
if (!hasKey) {
this.router.navigate(['lock']);
return false;
}