File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 5050 $ pw_len = strlen ($ _POST ['v_password ' ]);
5151 if ($ pw_len < 6 ) $ _SESSION ['error_msg ' ] = __ ('Password is too short. ' ,$ error_msg );
5252 }
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+ }
5358
5459 // Protect input
5560 $ v_username = escapeshellarg ($ _POST ['v_username ' ]);
Original file line number Diff line number Diff line change 4040if (empty ($ _POST ['v_state ' ])) $ errors [] = __ ('domain ' );
4141if (empty ($ _POST ['v_locality ' ])) $ errors [] = __ ('city ' );
4242if (empty ($ _POST ['v_org ' ])) $ errors [] = __ ('organization ' );
43+ if (empty ($ _POST ['v_email ' ])) $ errors [] = __ ('email ' );
4344$ v_domain = $ _POST ['v_domain ' ];
4445$ v_email = $ _POST ['v_email ' ];
4546$ v_country = $ _POST ['v_country ' ];
You can’t perform that action at this time.
0 commit comments