mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 15:51:23 +01:00
switch to RustCrypto's argon2 crate
This commit is contained in:
parent
60d32ddf48
commit
aa4cd8b1e1
6 changed files with 58 additions and 58 deletions
|
|
@ -584,10 +584,9 @@ impl KeyValueDatabase {
|
|||
for (userid, password) in db.userid_password.iter() {
|
||||
let password = utils::string_from_bytes(&password);
|
||||
|
||||
let empty_hashed_password =
|
||||
password.map_or(false, |password| {
|
||||
argon2::verify_encoded(&password, b"")
|
||||
.unwrap_or(false)
|
||||
let empty_hashed_password = password
|
||||
.map_or(false, |password| {
|
||||
utils::verify_password_hash("", password)
|
||||
});
|
||||
|
||||
if empty_hashed_password {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue