mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-27 12:36:14 +01:00
set pinLocked based on failed check
This commit is contained in:
parent
199884e6ae
commit
82f8f2b85e
@ -60,8 +60,8 @@ export class LockComponent implements OnInit {
|
||||
if (this.pinSet[0]) {
|
||||
const protectedPin = await this.storageService.get<string>(ConstantsService.protectedPin);
|
||||
const decPin = await this.cryptoService.decryptToUtf8(new CipherString(protectedPin));
|
||||
this.lockService.pinLocked = false;
|
||||
failed = decPin !== this.pin;
|
||||
this.lockService.pinLocked = failed;
|
||||
if (!failed) {
|
||||
this.doContinue();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user