mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2025-01-05 21:48:49 +01:00
vncserver: refactor
This commit is contained in:
parent
13f4ce0fba
commit
06e9e92ee1
@ -39,13 +39,12 @@ $desktopName = $opt{'-name'} || "$host:$displayNumber ($ENV{USER})";
|
||||
|
||||
$kasmAuthEnabled = 1;
|
||||
&DisableVncAuth();
|
||||
$kasmPasswdFile = "$ENV{HOME}/.kasmpasswd";
|
||||
@kasmPasswdUsers = &LoadKasmPasswdUsers();
|
||||
|
||||
@kasmPasswdUsers = &LoadKasmPasswdUsers();
|
||||
if ($kasmAuthEnabled && !&AtLeastOneUserConfigured()) {
|
||||
&GuideUserToSetupKasmPasswdUser();
|
||||
@kasmPasswdUsers = &LoadKasmPasswdUsers();
|
||||
}
|
||||
@kasmPasswdUsers = &LoadKasmPasswdUsers();
|
||||
|
||||
$desktopLog = "$vncUserDir/$host:$displayNumber.log";
|
||||
unlink($desktopLog);
|
||||
@ -1002,6 +1001,7 @@ sub SetGlobalVariables {
|
||||
$vncUserDir = "$ENV{HOME}/.vnc";
|
||||
$vncUserConfig = "$vncUserDir/config";
|
||||
$vncUserName = &DetectUserName();
|
||||
$kasmPasswdFile = "$ENV{HOME}/.kasmpasswd";
|
||||
|
||||
$vncSystemConfigDir = "/etc/kasmvnc";
|
||||
$vncSystemConfigDefaultsFile = "$vncSystemConfigDir/vncserver-config-defaults";
|
||||
|
Loading…
Reference in New Issue
Block a user