login authentication (PAM + fingerprint)
git clone https://git.lucas.co/cce-authenticator.git
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);
}
}
});