diff options
author | Ellie Huxtable <ellie@elliehuxtable.com> | 2023-08-30 22:37:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-30 22:37:15 +0100 |
commit | dead8f364528bd2ea2ac6a85164cdcd66508aa4d (patch) | |
tree | 5ecfd951c64159c82e1b43e47733c1215ad8dcf7 /atuin-server | |
parent | 340b9d8a2b68dc85a38186f17cef4b089ae98cf4 (diff) |
Run formatting (#1202)
Diffstat (limited to 'atuin-server')
-rw-r--r-- | atuin-server/src/handlers/user.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/atuin-server/src/handlers/user.rs b/atuin-server/src/handlers/user.rs index 75081155e..4f2ad891f 100644 --- a/atuin-server/src/handlers/user.rs +++ b/atuin-server/src/handlers/user.rs @@ -28,7 +28,9 @@ use atuin_common::api::*; pub fn verify_str(hash: &str, password: &str) -> bool { let arg2 = Argon2::new(Algorithm::Argon2id, Version::V0x13, Params::default()); - let Ok(hash) = PasswordHash::new(hash) else { return false }; + let Ok(hash) = PasswordHash::new(hash) else { + return false; + }; arg2.verify_password(password.as_bytes(), &hash).is_ok() } |