git.lucas.co / cce-authenticator
login authentication (PAM + fingerprint)
git clone https://git.lucas.co/cce-authenticator.git

commiteca982e91157e8bce3b50be5adadbe9d9d470370
parent61bb6d1816
authorLucas Galante <[email protected]>
date2026-06-07 22:22
fix: remove insecure success fallback on fingerprint scan error

 src/main.rs | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/main.rs b/src/main.rs
index ca7c53e..55222aa 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -314,8 +314,6 @@ impl Application for AuthenticatorApp {
                         let username = std::env::var("USER").unwrap_or_else(|_| "lsgalante".to_string());
                         if let Err(e) = run_dbus_fingerprint(username, tx.clone()).await {
                             let _ = tx.send(AuthResult::FingerprintStatus(format!("Scan error: {}", e)));
-                            tokio::time::sleep(std::time::Duration::from_millis(1000)).await;
-                            let _ = tx.send(AuthResult::Success); 
                         }
                     }
                 });