Update forms.js

Signed-off-by: Zoey <zoey@z0ey.de>
This commit is contained in:
Zoey 2023-06-24 02:29:09 +02:00 committed by Simon L
parent ae1d14dbc5
commit e8ed7aa236

View file

@ -39,10 +39,13 @@
document.getElementById('overlay').classList.remove('loading');
}
function mirrorPassword() {
function showPassword() {
var Password = document.getElementById("Password");
var mirroredPassword = document.getElementById("mirroredPassword");
mirroredPassword.innerText = Password.value;
if (Password.value !== "" && x.type === "password") {
Password.type = "text";
} else {
Password.type = "password";
}
}
function initForm(form) {