mirror of
https://github.com/rustdesk/hbb_common.git
synced 2026-04-02 22:16:18 +00:00
fix(password): has_local_permanent_password()
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
@@ -1381,6 +1381,10 @@ 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 {
|
||||
|
||||
Reference in New Issue
Block a user