mirror of
https://github.com/rustdesk/hbb_common.git
synced 2026-02-16 02:20:43 +00:00
support restore preset password except clear password
Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
@@ -1070,7 +1070,9 @@ impl Config {
|
||||
.get("password")
|
||||
.map_or(false, |v| v == password)
|
||||
{
|
||||
return;
|
||||
if CONFIG.read().unwrap().password.is_empty() {
|
||||
return;
|
||||
}
|
||||
}
|
||||
let mut config = CONFIG.write().unwrap();
|
||||
if password == config.password {
|
||||
|
||||
Reference in New Issue
Block a user