Use login service name for pam example
This commit is contained in:
parent
64174e515f
commit
4921114f56
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ fn main() {
|
|||
let passwd = pwd::Passwd::current_user().expect("Failed to get current user");
|
||||
|
||||
let mut context = Context::new(
|
||||
"cosmic-lock", // Service name, decides which policy is used (see `/etc/pam.d`)
|
||||
"login", // Service name, decides which policy is used (see `/etc/pam.d`)
|
||||
Some(&passwd.name), // Optional preset user name
|
||||
Conversation::new(), // Handler for user interaction
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue