refact(password): Store permanent password as hashed verifier

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou
2026-03-16 21:31:57 +08:00
parent 48c37de3e6
commit d98d20896e
2 changed files with 368 additions and 21 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ pub fn permanent_enabled() -> bool {
pub fn has_valid_password() -> bool {
temporary_enabled() && !temporary_password().is_empty()
|| permanent_enabled() && !Config::get_permanent_password().is_empty()
|| permanent_enabled() && Config::has_permanent_password()
}
pub fn approve_mode() -> ApproveMode {