auth: wip: sign in page and form, need to finish
This commit is contained in:
parent
d790d2ff29
commit
1695eca466
9 changed files with 179 additions and 6 deletions
|
|
@ -20,3 +20,12 @@ pub struct User {
|
|||
paper_key: Option<String>,
|
||||
is_archived: bool,
|
||||
}
|
||||
|
||||
impl User {
|
||||
pub fn is_archived(&self) -> bool {
|
||||
self.is_archived
|
||||
}
|
||||
pub fn password_hashed(&self) -> Option<&str> {
|
||||
self.password.as_deref()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue