Remove unused bscreensaver-auth crate

This commit is contained in:
Brian Tarricone 2022-05-04 01:02:03 -07:00
parent 7de9a2cdb8
commit c779bca1b0
4 changed files with 0 additions and 33 deletions

8
Cargo.lock generated
View File

@ -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"

View File

@ -1,7 +1,6 @@
[workspace]
members = [
"async-xcb",
"auth",
"command",
"locker",
"dbus-service",

View File

@ -1,8 +0,0 @@
[package]
name = "bscreensaver-auth"
version = "0.1.0"
edition = "2021"
[dependencies]
anyhow = "1"
pam = "0.7"

View File

@ -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(())
}