diff --git a/slapos/runner/static/js/scripts/account.js b/slapos/runner/static/js/scripts/account.js index 1425e00683cfe32e7cf6f65edb17925c1721e1d9..9a1cd672b49a4a7e2fbebe26325d46b13f12481b 100644 --- a/slapos/runner/static/js/scripts/account.js +++ b/slapos/runner/static/js/scripts/account.js @@ -12,10 +12,6 @@ $(document).ready(function () { $("#error").Popup("Invalid user name. Please check it!", {type: 'alert', duration: 3000}); return false; } - if ($("input#username").val().length < 6) { - $("#error").Popup("Username must have at least 6 characters", {type: 'alert', duration: 3000}); - return false; - } if ($("input#name").val() === "") { $("#error").Popup("Please enter your name and surname!", {type: 'alert', duration: 3000}); return false; @@ -28,10 +24,6 @@ $(document).ready(function () { $("#error").Popup("Please enter your new password!", {type: 'alert', duration: 3000}); return false; } - if ($("input#password").val() !== "" && $("input#password").val().length < 6) { - $("#error").Popup("The password must have at least 6 characters", {type: 'alert', duration: 3000}); - return false; - } if ($("input#password").val() !== "") { if ($("input#password").val() === "" || !$("input#password").val()) { $("#error").Popup("Please enter your new password!", {type: 'alert', duration: 3000});