[tutorial v1.1_210] Username is mandatory if a password is set

This commit is contained in:
egarette@silique.fr 2026-04-18 17:08:27 +02:00
parent 932fb2ff0b
commit b7be962670

View file

@ -71,6 +71,44 @@ proxies:
- SOCKS4 - SOCKS4
- SOCKS5 - SOCKS5
username:
description: Username
type: unix_user
mandatory:
jinja: |-
{% if _.password is not propertyerror and _.password %}
true
{% else %}
false
{% endif %}
return_type: boolean
description: if a password is set
disabled:
jinja: |-
{{ _.type not in ['HTTP', 'HTTPS/SSL', 'SOCKS4', 'SOCKS5'] }}
return_type: boolean
description: |-
if type not in:
- HTTP
- HTTPS/SSL
- SOCKS4
- SOCKS5
password:
description: Password
type: secret
mandatory: false
disabled:
jinja: |-
{{ _.type not in ['HTTP', 'HTTPS/SSL', 'SOCKS4', 'SOCKS5'] }}
return_type: boolean
description: |-
if type not in:
- HTTP
- HTTPS/SSL
- SOCKS4
- SOCKS5
url: url:
description: URL description: URL
type: web_address type: web_address