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 @@
You can change your AIO password below: