vncserver: extract AtLeastOneUserConfigured()

This commit is contained in:
Dmitry Maksyoma 2021-08-03 20:32:09 +12:00
parent a6e9f94e27
commit fa342f624f

View File

@ -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 = ();