pastes: don't 404 when user does not exist

Signed-off-by: ATechnoHazard <amolele@gmail.com>
This commit is contained in:
sphericalkat committed 2020-09-26 19:59:32 +05:30
1 parent b661b7ea8d
commit ac2028d373
2 files changed
+17 -5

No files matched your search

+11
View File
@@ -8,3 +8,14 @@ pub struct User {
pub password: Option<String>,
pub activated: Option<bool>,
}
impl User {
pub fn new() -> Self {
User {
id: "".to_string(),
username: None,
password: None,
activated: None,
}
}
}