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
|
|
@ -93,7 +93,11 @@
|
|||
}
|
||||
|
||||
if (password === undefined) {
|
||||
password = spice_query_var('password', '');
|
||||
{% if perms.instances.passwordless_console %}
|
||||
password = '{{ console_passwd }}';
|
||||
{% else %}
|
||||
password = prompt('{% trans "Password" %}');
|
||||
{% endif %}
|
||||
//password = '{{ console_passwd | safe }}';
|
||||
}
|
||||
if (password === 'None') password = '';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue