mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
Fix grace lock with empty password
This commit is contained in:
parent
01026a223a
commit
5d99de94fa
1 changed files with 4 additions and 1 deletions
|
|
@ -59,7 +59,10 @@ Rectangle {
|
||||||
}
|
}
|
||||||
|
|
||||||
function enter() {
|
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)
|
// don't try to unlock if there is a timeout (unlock once unlocked)
|
||||||
if (!authenticator.graceLocked) {
|
if (!authenticator.graceLocked) {
|
||||||
authenticator.tryUnlock(root.password);
|
authenticator.tryUnlock(root.password);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue