mirror of
https://codeberg.org/TicklishHoneyBee/CLIte.git
synced 2026-03-11 09:04:37 +00:00
do not auto-login to guest if another non-root account exists with a password
This commit is contained in:
parent
2983f4a1dd
commit
63e63a88ce
1 changed files with 4 additions and 2 deletions
|
|
@ -1310,11 +1310,13 @@ cat -l /usr/share/introduction
|
|||
return d;
|
||||
}
|
||||
clite.user.hasAltLogin = function() {
|
||||
let r = false;
|
||||
data.users.forEach(function(u) {
|
||||
console.log(u.name+':'+u.pass);
|
||||
if (u.name != 'root' && u.pass != 'x')
|
||||
return true;
|
||||
r = true;
|
||||
});
|
||||
return false;
|
||||
return r;
|
||||
}
|
||||
|
||||
loadUsers();
|
||||
|
|
|
|||
Loading…
Reference in a new issue