autoLogin and trustThisDevice are two different things

This commit is contained in:
rustdesk committed 2023-06-22 22:11:35 +08:00
1 parent 52f3ab0852
commit ac8fc71b3b
6 files changed
+14 -14

No files matched your search

+1 -1
View File
@@ -82,7 +82,7 @@ function editOSPassword(login=false) {
if (!res) return;
var a0 = handler.get_option('auto-login') != '';
var p = (res.password || '').trim();
var a = res.auto_login || false;
var a = res.autoLogin || false;
if (p == p0 && a == a0) return;
if (p != p0) handler.set_option('os-password', p);
if (a != a0) handler.set_option('auto-login', a ? 'Y' : '');