Use login PAM context

This commit is contained in:
Jeremy Soller 2023-11-28 08:57:48 -07:00
parent 38d602e71a
commit 5d0999df83
No known key found for this signature in database
GPG key ID: DCFCA852D3906975

View file

@ -73,7 +73,8 @@ pub fn pam_thread(username: String, conversation: Conversation) -> Result<(), pa
//TODO: send errors to GUI, restart process
// Create PAM context
let mut context = pam_client::Context::new("cosmic-locker", Some(&username), conversation)?;
//TODO: search for and use custom context?
let mut context = pam_client::Context::new("login", Some(&username), conversation)?;
// Authenticate the user (ask for password, 2nd-factor token, fingerprint, etc.)
log::info!("authenticate");