From 5d99de94fa5bbab0d774d39e63e348afb0f8fc76 Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Sat, 3 Oct 2020 17:27:14 -0400 Subject: [PATCH] Fix grace lock with empty password --- look-and-feel/contents/lockscreen/Keypad.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/look-and-feel/contents/lockscreen/Keypad.qml b/look-and-feel/contents/lockscreen/Keypad.qml index 6be2b1d8..88ac83d2 100644 --- a/look-and-feel/contents/lockscreen/Keypad.qml +++ b/look-and-feel/contents/lockscreen/Keypad.qml @@ -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);