mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
set pinLocked based on failed check
This commit is contained in:
@@ -60,8 +60,8 @@ export class LockComponent implements OnInit {
|
|||||||
if (this.pinSet[0]) {
|
if (this.pinSet[0]) {
|
||||||
const protectedPin = await this.storageService.get<string>(ConstantsService.protectedPin);
|
const protectedPin = await this.storageService.get<string>(ConstantsService.protectedPin);
|
||||||
const decPin = await this.cryptoService.decryptToUtf8(new CipherString(protectedPin));
|
const decPin = await this.cryptoService.decryptToUtf8(new CipherString(protectedPin));
|
||||||
this.lockService.pinLocked = false;
|
|
||||||
failed = decPin !== this.pin;
|
failed = decPin !== this.pin;
|
||||||
|
this.lockService.pinLocked = failed;
|
||||||
if (!failed) {
|
if (!failed) {
|
||||||
this.doContinue();
|
this.doContinue();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user