Remove unused bscreensaver-auth crate
This commit is contained in:
parent
7de9a2cdb8
commit
c779bca1b0
8
Cargo.lock
generated
8
Cargo.lock
generated
@ -267,14 +267,6 @@ dependencies = [
|
||||
"xcb-xembed",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "bscreensaver-auth"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"pam",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "bscreensaver-command"
|
||||
version = "0.1.0"
|
||||
|
@ -1,7 +1,6 @@
|
||||
[workspace]
|
||||
members = [
|
||||
"async-xcb",
|
||||
"auth",
|
||||
"command",
|
||||
"locker",
|
||||
"dbus-service",
|
||||
|
@ -1,8 +0,0 @@
|
||||
[package]
|
||||
name = "bscreensaver-auth"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
anyhow = "1"
|
||||
pam = "0.7"
|
@ -1,16 +0,0 @@
|
||||
use std::io;
|
||||
|
||||
fn main() -> anyhow::Result<()> {
|
||||
let stdin = io::stdin();
|
||||
|
||||
let mut username = String::new();
|
||||
stdin.read_line(&mut username)?;
|
||||
let mut password = String::new();
|
||||
stdin.read_line(&mut password)?;
|
||||
|
||||
let mut authenticator = pam::Authenticator::with_password("xscreensaver")?;
|
||||
authenticator.get_handler().set_credentials(username.trim(), password.trim());
|
||||
authenticator.authenticate()?;
|
||||
|
||||
Ok(())
|
||||
}
|
Loading…
Reference in New Issue
Block a user