added password and username check
This commit is contained in:
parent
eedbb36a3f
commit
87cd1973c0
16
spacetaxi.js
16
spacetaxi.js
@ -65,11 +65,23 @@ function create_star()
|
||||
}
|
||||
|
||||
function check_password(e) {
|
||||
// To-Do?
|
||||
password = e.target.value;
|
||||
|
||||
if (password.length > 12)
|
||||
{
|
||||
alert("Passwort darf höchstens 12 Zeichen lang sein!");
|
||||
document.querySelector("form").password.value = "";
|
||||
}
|
||||
}
|
||||
|
||||
function check_username(e) {
|
||||
// To-Do?
|
||||
username = e.target.value;
|
||||
|
||||
if (username.length > 8)
|
||||
{
|
||||
alert("Username darf höchstens 8 Zeichen lang sein!");
|
||||
document.querySelector("form").username.value = "";
|
||||
}
|
||||
}
|
||||
|
||||
function check_after_submitting(e)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user