We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fac9bdf commit 882625aCopy full SHA for 882625a
1 file changed
web/add/user/index.php
@@ -50,6 +50,11 @@
50
$pw_len = strlen($_POST['v_password']);
51
if ($pw_len < 6 ) $_SESSION['error_msg'] = __('Password is too short.',$error_msg);
52
}
53
+ // Check username length
54
+ if (empty($_SESSION['error_msg'])) {
55
+ $username_len = strlen($_POST['v_username']);
56
+ if ($username_len > 12) $_SESSION['error_msg'] = __('Username is too long. Maximum 12 characters', $error_msg);
57
+ }
58
59
// Protect input
60
$v_username = escapeshellarg($_POST['v_username']);
0 commit comments