1
0
Fork 0
mirror of https://github.com/SinTan1729/chhoto-url synced 2025-03-14 05:04:40 -05:00

fix: Hide the disabled wrong password text area in dialog

This commit is contained in:
Sayantan Santra 2025-03-04 00:11:34 -06:00
parent e8faf660f4
commit 0d58e626a4
Signed by: SinTan1729
GPG key ID: 0538DD402EA50898
2 changed files with 2 additions and 1 deletions

View file

@ -78,7 +78,7 @@
<p>Please enter password to access this website</p>
<input type="password" id="password" />
<button class="pure-button pure-button-primary" value="default">Log in</button>
<p id="wrong-pass">&nbsp;</p>
<p id="wrong-pass" hidden>&nbsp;</p>
</form>
</dialog>

View file

@ -239,6 +239,7 @@ const submitLogin = () => {
const wrongPassBox = document.getElementById("wrong-pass");
wrongPassBox.innerHTML = "Wrong password!";
wrongPassBox.style.color = "light-dark(red, #ff1a1a)";
wrongPassBox.hidden = false;
password.focus();
}
})