auth: wip: sign in page and form, need to finish

This commit is contained in:
Philippe Loctaux 2023-03-11 00:38:13 +01:00
parent d790d2ff29
commit 1695eca466
9 changed files with 179 additions and 6 deletions

View file

@ -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()
}
}