Merge pull request #463 from 21pages/support_restore_preset_password

support restore preset password except clear password
This commit is contained in:
RustDesk
2025-12-16 11:45:53 +08:00
committed by GitHub

View File

@@ -1070,7 +1070,9 @@ impl Config {
.get("password") .get("password")
.map_or(false, |v| v == password) .map_or(false, |v| v == password)
{ {
return; if CONFIG.read().unwrap().password.is_empty() {
return;
}
} }
let mut config = CONFIG.write().unwrap(); let mut config = CONFIG.write().unwrap();
if password == config.password { if password == config.password {