mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 06:26:57 +00:00
show AIO password
Signed-off-by: Zoey <zoey@z0ey.de>
This commit is contained in:
parent
2a83c57425
commit
9e26e24820
2 changed files with 8 additions and 1 deletions
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -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 %}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue