<optiontype>integer</optiontype>
<defaultvalue>3</defaultvalue>
<minvalue>3</minvalue>
- <maxvalue>255</maxvalue>
+ <maxvalue>100</maxvalue>
</option>
<option name="register_username_max_length">
<categoryname>user.register</categoryname>
<optiontype>integer</optiontype>
<defaultvalue>25</defaultvalue>
<minvalue>3</minvalue>
- <maxvalue>255</maxvalue>
+ <maxvalue>100</maxvalue>
</option>
<option name="register_username_force_ascii">
<categoryname>user.register</categoryname>
* @return boolean
*/
public static function isValidUsername($name) {
- // minimum length is 3 characters, maximum length is 255 characters
- if (mb_strlen($name) < 3 || mb_strlen($name) > 255) {
+ // minimum length is 3 characters, maximum length is 100 characters
+ if (mb_strlen($name) < 3 || mb_strlen($name) > 100) {
return false;
}