Revision 1446
Added by DarkViper over 13 years ago
save.php | ||
---|---|---|
56 | 56 |
if($groups_id == "") { |
57 | 57 |
$admin->print_error($MESSAGE['USERS']['NO_GROUP'], $js_back); |
58 | 58 |
} |
59 |
if(strlen($username) < 2) { |
|
60 |
$admin->print_error($MESSAGE['USERS']['USERNAME_TOO_SHORT'], $js_back); |
|
59 |
if(!preg_match('/^[a-z]{1}[a-z0-9_-]{2,}$/i', $username)) { |
|
60 |
$admin->print_error( $MESSAGE['USERS_NAME_INVALID_CHARS'].' / '. |
|
61 |
$MESSAGE['USERS_USERNAME_TOO_SHORT'], $js_back); |
|
61 | 62 |
} |
62 | 63 |
if($password != "") { |
63 | 64 |
if(strlen($password) < 2) { |
... | ... | |
114 | 115 |
|
115 | 116 |
// Print admin footer |
116 | 117 |
$admin->print_footer(); |
117 |
|
|
118 |
?> |
Also available in: Unified diff
fixed validation of loginname (admin/users and signup)