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]) {
|
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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue