[Add] basic split
This commit is contained in:
parent
a0ff6b1082
commit
3cdf7c62d5
77 changed files with 506 additions and 648 deletions
18
decentralized/src/local-auth/auth_user.rs
Normal file
18
decentralized/src/local-auth/auth_user.rs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#[derive(Clone, PartialEq, Eq, Hash)]
|
||||
pub struct AuthUser {
|
||||
pub id: i64,
|
||||
pub username: String,
|
||||
pub password_hash: String,
|
||||
pub public_key: String,
|
||||
}
|
||||
|
||||
impl AuthUser {
|
||||
pub fn new(id: i64, username: String, password_hash: String, public_key: String) -> Self {
|
||||
AuthUser {
|
||||
id,
|
||||
username,
|
||||
password_hash,
|
||||
public_key,
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue