diff --git a/php/public/forms.js b/php/public/forms.js index 28c46a77..dde9a1ef 100644 --- a/php/public/forms.js +++ b/php/public/forms.js @@ -39,6 +39,15 @@ document.getElementById('overlay').classList.remove('loading'); } + function showPassword(id) { + let passwordField = document.getElementById(id); + if (passwordField.type === "password" && passwordField.value !== "") { + passwordField.type = "text"; + } else if (passwordField.type === "text" && passwordField.value === "") { + passwordField.type = "password"; + } + } + function initForm(form) { function submit(event) { diff --git a/php/templates/containers.twig b/php/templates/containers.twig index 3219adc2..16870e61 100644 --- a/php/templates/containers.twig +++ b/php/templates/containers.twig @@ -509,8 +509,8 @@ Click here to change your AIO password
You can change your AIO password below:

- - + + diff --git a/php/templates/login.twig b/php/templates/login.twig index 5659c4db..4ddd1257 100644 --- a/php/templates/login.twig +++ b/php/templates/login.twig @@ -8,7 +8,8 @@ {% if is_login_allowed == true %}

Log in using your Nextcloud AIO password:

- + +