added anyhow, improve hamburger menu, improve dw articles
This commit is contained in:
@@ -17,7 +17,7 @@ pub struct User {
|
||||
}
|
||||
|
||||
impl User {
|
||||
pub fn verify(self, password: String) -> bool {
|
||||
verify(password.as_str(), &self.password).unwrap()
|
||||
pub fn verify(self, password: String) -> anyhow::Result<bool> {
|
||||
Ok(verify(password.as_str(), &self.password)?)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user