Update splash.js

Signed-off-by: ed <s@ocv.me>
This commit is contained in:
ed 2025-12-14 19:59:03 +00:00 committed by GitHub
parent 292cec5eca
commit 2344dc6c6f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -8,8 +8,8 @@ Ls.eng = {
"ta1": "fill in your new password first", "ta1": "fill in your new password first",
"ta2": "repeat to confirm new password:", "ta2": "repeat to confirm new password:",
"ta3": "found a typo; please try again", "ta3": "found a typo; please try again",
"nop": "please enter a password", "nop": "ERROR: Password cannot be blank",
"nou": "please enter a username and password" "nou": "ERROR: Username and/or password cannot be blank",
} }
}; };
@ -103,12 +103,11 @@ if (/\&re=/.test('' + location))
}; };
})(); })();
ebi('lf').onsubmit = function(e) { if (ebi('lf'))
ev(e); ebi('lf').onsubmit = function() {
e.preventDefault(); var un = ebi('lu');
let uname = ebi('lu'); if (ebi('lp').value && (!un || un.value))
if (ebi('lp').value && (!uname || uname.value)) return true;
e.target.submit(); ebi('lm').innerHTML = un ? d.nou : d.nop;
else return false;
ebi('lm').innerHTML = uname ? d.nou : d.nop; };
};