mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-05 08:37:15 +00:00
preset password warning
This commit is contained in:
1 parent
ccf5b0ef53
commit
fe0de47805
5 files changed
+59
-1
No files matched your search
@@ -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