comment broken newuser

This commit is contained in:
Dietrich 2020-10-23 19:45:51 +02:00
parent f33ba8e767
commit 932fb2827d
2 changed files with 14 additions and 14 deletions

View File

@ -17,18 +17,18 @@ pub trait UserDBValidation {
pub trait UserDBWrite {
fn delete_user(&mut self, user: &str) -> Result<crate::User, crate::UserLibError>;
fn new_user(
&mut self,
username: String,
enc_password: String,
uid: u32,
gid: u32,
full_name: String,
room: String,
phone_work: String,
phone_home: String,
other: Option<Vec<String>>,
home_dir: String,
shell_path: String,
&mut self, /*
username: String,
enc_password: String,
uid: u32,
gid: u32,
full_name: String,
room: String,
phone_work: String,
phone_home: String,
other: Option<Vec<String>>,
home_dir: String,
shell_path: String,*/
) -> Result<&crate::User, crate::UserLibError>;
fn delete_group(&mut self, group: &crate::Group) -> Result<(), crate::UserLibError>;
fn new_group(&mut self) -> Result<&crate::Group, crate::UserLibError>;

View File

@ -91,7 +91,7 @@ impl UserDBWrite for UserDBLocal {
}
fn new_user(
&mut self,
&mut self, /*
username: String,
enc_password: String,
uid: u32,
@ -102,7 +102,7 @@ impl UserDBWrite for UserDBLocal {
phone_home: String,
other: Option<Vec<String>>,
home_dir: String,
shell_path: String,
shell_path: String,*/
) -> Result<&crate::User, crate::UserLibError> {
/*if self.users.contains_key(&username) {
Err(format!(