vncserver: extract DisableVncAuth()

This commit is contained in:
Dmitry Maksyoma
2021-08-01 21:11:19 +12:00
parent dc1850f1e7
commit d6fa4b55d7

View File

@@ -96,8 +96,7 @@ my %config;
# create a VNC password if they don't already have one.
#
# Disable vnc auth, kasmvnc uses https basic auth
system("echo 'WrLNwLrcrxM=' | base64 -d > $vncUserDir/passwd");
&DisableVncAuth();
$kasmAuthEnabled = 1;
@@ -920,3 +919,8 @@ sub LoadSystemThenUserThenMandatoryConfigs {
# development work that touches Xvnc itself.
LoadConfig($vncSystemConfigMandatoryFile, 1);
}
sub DisableVncAuth() {
# Disable vnc auth, kasmvnc uses https basic auth
system("echo 'WrLNwLrcrxM=' | base64 -d > $vncUserDir/passwd");
}