preset password warning

This commit is contained in:
rustdesk committed 2024-03-16 11:52:48 +08:00
1 parent ccf5b0ef53
commit fe0de47805
5 files changed
+59 -1

No files matched your search

+8
View File
@@ -1849,6 +1849,14 @@ pub fn is_disable_installation() -> SyncReturn<bool> {
SyncReturn(config::is_disable_installation())
}
pub fn is_preset_password() -> bool {
config::HARD_SETTINGS
.read()
.unwrap()
.get("password")
.map_or(false, |p| p == &crate::ipc::get_permanent_password())
}
/// Send a url scheme throught the ipc.
///
/// * macOS only