Skip to content

Commit 90b4ef7

Browse files
committed
Replace unstable library feature
for more information see issue #93050: rust-lang/rust#93050 Signed-off-by: Knut Borchers <[email protected]>
1 parent f9ac0af commit 90b4ef7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

backend/src/core/service/user.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ fn password_matches_hash(
3434
hash: &str,
3535
password: &str, // talisman-ignore-line
3636
) -> bool {
37-
argon2::verify_encoded(hash, password.as_bytes()).is_ok_and(|is_verified| is_verified)
37+
return if let Ok(is_verified) = argon2::verify_encoded(hash, password.as_bytes()) {
38+
is_verified
39+
} else {
40+
false
41+
};
3842
}
3943

4044
pub struct DefaultUserService<UR: UserRepository> {

0 commit comments

Comments
 (0)