show AIO password

Signed-off-by: Zoey <zoey@z0ey.de>
This commit is contained in:
Zoey 2023-06-17 06:52:30 +00:00 committed by Simon L
parent 2a83c57425
commit 9e26e24820
2 changed files with 8 additions and 1 deletions

View file

@ -39,6 +39,12 @@
document.getElementById('overlay').classList.remove('loading'); document.getElementById('overlay').classList.remove('loading');
} }
function mirrorPassword() {
var Password = document.getElementById("Password");
var mirroredPassword = document.getElementById("mirroredPassword");
mirroredPassword.innerText = Password.value;
}
function initForm(form) { function initForm(form) {
function submit(event) function submit(event)
{ {

View file

@ -8,9 +8,10 @@
{% if is_login_allowed == true %} {% if is_login_allowed == true %}
<p>Log in using your Nextcloud AIO password:</p> <p>Log in using your Nextcloud AIO password:</p>
<form method="POST" action="/api/auth/login" class="xhr"> <form method="POST" action="/api/auth/login" class="xhr">
<input type="text" autocomplete="off" name="password" placeholder="Password" /> <input name="password" placeholder="Password" autocomplete="on" type="password" wfd-id="id0" id="Password" oninput="mirrorPassword()">
<input type="hidden" name="{{csrf.keys.name}}" value="{{csrf.name}}"> <input type="hidden" name="{{csrf.keys.name}}" value="{{csrf.name}}">
<input type="hidden" name="{{csrf.keys.value}}" value="{{csrf.value}}"> <input type="hidden" name="{{csrf.keys.value}}" value="{{csrf.value}}">
<a>Password: </a><a id="mirroredPassword"></a><br><br>
<input type="submit" class="button" value="Log in" /> <input type="submit" class="button" value="Log in" />
</form> </form>
{% else %} {% else %}