Use login PAM context
This commit is contained in:
parent
38d602e71a
commit
5d0999df83
1 changed files with 2 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue