We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9ac0af commit 90b4ef7Copy full SHA for 90b4ef7
backend/src/core/service/user.rs
@@ -34,7 +34,11 @@ fn password_matches_hash(
34
hash: &str,
35
password: &str, // talisman-ignore-line
36
) -> bool {
37
- argon2::verify_encoded(hash, password.as_bytes()).is_ok_and(|is_verified| is_verified)
+ return if let Ok(is_verified) = argon2::verify_encoded(hash, password.as_bytes()) {
38
+ is_verified
39
+ } else {
40
+ false
41
+ };
42
}
43
44
pub struct DefaultUserService<UR: UserRepository> {
0 commit comments