mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-01-09 07:07:34 +08:00
Update php/public/forms.js
Co-authored-by: Simon L. <szaimen@e.mail.de> Signed-off-by: Zoey <zoey@z0ey.de>
This commit is contained in:
parent
559101a308
commit
dd02dc82a5
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@
|
|||
|
||||
function showPassword(id) {
|
||||
let passwordField = document.getElementById(id);
|
||||
if (passwordField.value !== "" && passwordField.type !== "text") {
|
||||
if (passwordField.type === "password" && passwordField.value !== "") {
|
||||
passwordField.type = "text";
|
||||
} else if (passwordField.value === "" && passwordField.type !== "password") {
|
||||
passwordField.type = "password";
|
||||
|
|
Loading…
Reference in a new issue