1
0
Fork 0
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:
catborise 2020-07-17 11:05:47 +03:00
parent 74a4a1a3ef
commit 44aa746f4b
8 changed files with 57 additions and 5 deletions

View file

@ -199,7 +199,11 @@
<label for="port">{% trans 'Port' %}:</label>
<input type='text' id='port' value='{{ ws_port }}'>
<label for="password">{% trans 'Password' %}:</label>
<input type='password' id='password'>
{% if perms.instances.passwordless_console %}
<input type='password' id='password' value='{{ console_passwd }}'>
{% else %}
<input type='password' id='password'>
{% endif %}
<label for="show_console">{% trans 'Show console' %}</label>
<input type="checkbox" id="show_console" value="1" onchange="toggle_console()" checked>
<button id="connectButton">{% trans 'Start' %}</button>