Fix grace lock with empty password

This commit is contained in:
Devin Lin 2020-10-03 17:27:14 -04:00
parent 01026a223a
commit 5d99de94fa

View file

@ -59,7 +59,10 @@ Rectangle {
}
function enter() {
keypadRoot.waitingForAuth = true;
if (root.password !== "") { // prevent typing lock when password is empty
keypadRoot.waitingForAuth = true;
}
// don't try to unlock if there is a timeout (unlock once unlocked)
if (!authenticator.graceLocked) {
authenticator.tryUnlock(root.password);