chore: update deps (#694)

This commit is contained in:
sigoden
2026-04-25 21:31:44 +08:00
committed by GitHub
parent 53ea692dd1
commit 30b2979d0a
4 changed files with 678 additions and 351 deletions
+5 -1
View File
@@ -9,6 +9,7 @@ use indexmap::IndexMap;
use lazy_static::lazy_static;
use md5::Context;
use sha2::{Digest, Sha256};
use sha_crypt::PasswordVerifier;
use std::{
collections::HashMap,
path::{Path, PathBuf},
@@ -427,7 +428,10 @@ pub fn check_auth(
}
if auth_pass.starts_with("$6$") {
if let Ok(()) = sha_crypt::sha512_check(pass, auth_pass) {
if sha_crypt::ShaCrypt::SHA512
.verify_password(pass.as_bytes(), auth_pass)
.is_ok()
{
return Some(());
}
} else if pass == auth_pass {