put the aio password change into a details tag

Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
Simon L 2023-04-24 15:39:43 +02:00
parent c76e0aa1c1
commit 3cce13f2b8

View file

@ -504,15 +504,18 @@
{% if is_backup_container_running == false %} {% if is_backup_container_running == false %}
{% if isApacheStarting == false %} {% if isApacheStarting == false %}
<h2>AIO password change</h2> <h2>AIO password change</h2>
You can change your AIO password below:<br><br /> <details>
<form method="POST" action="/api/configuration" class="xhr"> <summary>Click here to change your AIO password</summary><br />
<input type="text" autocomplete="current-password" name="current-master-password" placeholder="Your current AIO password"/> You can change your AIO password below:<br><br />
<input type="text" autocomplete="new-password" name="new-master-password" placeholder="Your new AIO password"/> <form method="POST" action="/api/configuration" class="xhr">
<input type="hidden" name="{{csrf.keys.name}}" value="{{csrf.name}}"> <input type="text" autocomplete="current-password" name="current-master-password" placeholder="Your current AIO password"/>
<input type="hidden" name="{{csrf.keys.value}}" value="{{csrf.value}}"> <input type="text" autocomplete="new-password" name="new-master-password" placeholder="Your new AIO password"/>
<input class="button" type="submit" value="Submit" /> <input type="hidden" name="{{csrf.keys.name}}" value="{{csrf.name}}">
</form> <input type="hidden" name="{{csrf.keys.value}}" value="{{csrf.value}}">
The new password needs to be at least 24 characters long. Allowed characters are the <a href="https://en.wikipedia.org/wiki/Latin_alphabet#/media/File:Abecedarium.png"><b>latin characters</b></a> <b>a-z</b>, <b>A-Z</b>, <b>0-9</b> and <b>spaces</b>.<br><br> <input class="button" type="submit" value="Submit" />
</form>
The new password needs to be at least 24 characters long. Allowed characters are the <a href="https://en.wikipedia.org/wiki/Latin_alphabet#/media/File:Abecedarium.png"><b>latin characters</b></a> <b>a-z</b>, <b>A-Z</b>, <b>0-9</b> and <b>spaces</b>.<br>
</details><br>
{% endif %} {% endif %}
{% endif %} {% endif %}
{% endif %} {% endif %}