mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
preset password warning
This commit is contained in:
@@ -954,6 +954,14 @@ impl Config {
|
||||
}
|
||||
|
||||
pub fn set_permanent_password(password: &str) {
|
||||
if HARD_SETTINGS
|
||||
.read()
|
||||
.unwrap()
|
||||
.get("password")
|
||||
.map_or(false, |v| v == password)
|
||||
{
|
||||
return;
|
||||
}
|
||||
let mut config = CONFIG.write().unwrap();
|
||||
if password == config.password {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user