Switch to argon2: WIP
This commit is contained in:
+1
-1
@@ -35,7 +35,7 @@ pub fn main() {
|
||||
let stdout = io::stdout();
|
||||
let mut stdout = stdout.lock();
|
||||
loop {
|
||||
stdout.write(b"\x1Bc").unwrap();
|
||||
//stdout.write(b"\x1Bc").unwrap();
|
||||
let _ = stdout.flush();
|
||||
match Command::new("file:bin/login").spawn() {
|
||||
Ok(mut child) => match child.wait() {
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@ pub fn main() {
|
||||
let user = (&mut stdin as &mut Read).read_line().unwrap().unwrap_or(String::new());
|
||||
if ! user.is_empty() {
|
||||
let mut passwd_string = String::new();
|
||||
File::open("file:etc/passwd").unwrap().read_to_string(&mut passwd_string).unwrap();
|
||||
File::open("/etc/passwd").unwrap().read_to_string(&mut passwd_string).unwrap();
|
||||
|
||||
let mut passwd_option = None;
|
||||
for line in passwd_string.lines() {
|
||||
|
||||
Reference in New Issue
Block a user