Merge pull request #2413 from nextcloud/enh/noid/details-tag-aio-password

put the aio password change into a details tag
This commit is contained in:
Simon L 2023-04-24 15:40:46 +02:00 committed by GitHub
commit 8171d2c036
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 %}