fix(password): remove has_local_permanent_password

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou
2026-03-22 11:35:28 +08:00
parent 70f22e69c8
commit 325b8841ea

View File

@@ -1381,10 +1381,6 @@ impl Config {
.map_or(false, |v| !v.is_empty())
}
pub fn has_local_permanent_password() -> bool {
!CONFIG.read().unwrap().password.is_empty()
}
pub fn set_salt(salt: &str) {
let mut config = CONFIG.write().unwrap();
if salt == config.salt {