Files
fedora-tools/plasma-fingerprint-workaround/kscreenlocker/patches/0002-allow-retrying-noninteractive-authentication.patch
T

31 lines
1.1 KiB
Diff

From: Anton Partanen
Subject: [PATCH] Allow retrying non-interactive authentication
An active password conversation should not prevent a completed fingerprint
conversation from being started again. PamAuthenticator::tryUnlock() already
ignores authenticators that are still running, so let subsequent start
requests reach each authenticator.
This is a minimal backport of the state-guard removal in upstream commit
a5ed9ca0. It allows a fingerprint attempt interrupted by suspend to restart
without cancelling the password conversation.
---
greeter/pamauthenticators.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/greeter/pamauthenticators.cpp b/greeter/pamauthenticators.cpp
index 7c53b73..f60516d 100644
--- a/greeter/pamauthenticators.cpp
+++ b/greeter/pamauthenticators.cpp
@@ -141,7 +141,7 @@ PamAuthenticators::AuthenticatorsState PamAuthenticators::state() const
void PamAuthenticators::startAuthenticating()
{
- if (d->state == AuthenticatorsState::Authenticating || d->graceLocked) {
+ if (d->graceLocked) {
return;
}
--
2.51.0