mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2025-01-20 21:08:50 +01:00
vncserver: extract AtLeastOneUserConfigured()
This commit is contained in:
parent
a6e9f94e27
commit
fa342f624f
@ -843,7 +843,7 @@ sub DisableVncAuth() {
|
||||
}
|
||||
|
||||
sub TellUserToSetupUserAndPassword {
|
||||
if (scalar @kasmPasswdUsers > 0) {
|
||||
if (&AtLeastOneUserConfigured()) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -854,6 +854,10 @@ sub TellUserToSetupUserAndPassword {
|
||||
}
|
||||
}
|
||||
|
||||
sub AtLeastOneUserConfigured {
|
||||
scalar @kasmPasswdUsers > 0;
|
||||
}
|
||||
|
||||
sub LoadKasmPasswdUsers {
|
||||
my @result = ();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user