mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-04 16:35:19 +00:00
revert linux is_prelogin
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
1 parent
16a557b322
commit
40204077db
1 file changed
+2
-2
@@ -455,8 +455,8 @@ pub fn get_env_var(k: &str) -> String {
|
||||
}
|
||||
|
||||
pub fn is_prelogin() -> bool {
|
||||
let (uid, uname) = get_active_user_id_name();
|
||||
uid.len() >= 4 || uname == "root"
|
||||
let n = get_active_userid().len();
|
||||
n < 4 && n > 1
|
||||
}
|
||||
|
||||
pub fn is_root() -> bool {
|
||||
|
||||
Reference in new issue
Block a user