|
|
|
@ -62,7 +62,6 @@
|
|
|
|
|
let userInput = document.getElementById('username');
|
|
|
|
|
let user = userInput.value;
|
|
|
|
|
resetValidity([passwordInput, password2Input, userInput])
|
|
|
|
|
console.log('Chec')
|
|
|
|
|
if(user.length < 4) return userInput.setCustomValidity(Errors.Short);
|
|
|
|
|
if(password.length < 10) return passwordInput.setCustomValidity(Errors.Short);
|
|
|
|
|
if(password!=password2) return password2Input.setCustomValidity(Errors.Mismatch);
|
|
|
|
|