mirror of
https://github.com/retspen/webvirtcloud
synced 2025-07-31 12:41:08 +00:00
make console password optional for users with permissions
This commit is contained in:
parent
74a4a1a3ef
commit
44aa746f4b
8 changed files with 57 additions and 5 deletions
|
@ -167,7 +167,13 @@
|
|||
// By default, use the host and port of server that served this file
|
||||
const host = readQueryVariable('host', '{{ ws_host }}');
|
||||
let port = readQueryVariable('port', '{{ ws_port }}');
|
||||
const password = readQueryVariable('password');
|
||||
|
||||
{% if perms.instances.passwordless_console %}
|
||||
const password = '{{ console_passwd }}';
|
||||
{% else %}
|
||||
const password = readQueryVariable('password');
|
||||
{% endif %}
|
||||
|
||||
//const path = readQueryVariable('path', 'websockify');
|
||||
const path = readQueryVariable('path', '{{ ws_path }}');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue