You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jade/src/functions/users.rs

13 lines
475 B
Rust

pub fn new_user(username: &str, hasroot: bool, password: &str) {
println!("Creating new user '{}'", username);
if hasroot {
println!("User '{}' will have root privileges", username);
} else {
println!("User '{}' will not have root privileges", username);
}
println!("Setting password for user '{}' to '{}'", username, password);
}
pub fn root_pass(root_pass: &str) {
println!("Setting root password to '{}'", root_pass);
}