Paul B XenForo moderator Staff member Feb 5, 2012 #2 Whatever you set in Options -> User Registration: User Name Match Regular Expression Upvote 0 Downvote
B bottiger Active member Feb 5, 2012 #3 I know there's more than that. I got an error message about control characters. Upvote 0 Downvote
Jake Bunce Well-known member Feb 6, 2012 #4 Commas are not allowed as they are used to delimit lists of usernames. There are no other restricted characters to my knowledge. But of course you can impose your own requirements on usernames by defining a regex as Brogan pointed out. Upvote 0 Downvote
Commas are not allowed as they are used to delimit lists of usernames. There are no other restricted characters to my knowledge. But of course you can impose your own requirements on usernames by defining a regex as Brogan pointed out.
B bottiger Active member Feb 6, 2012 #5 There are other restricted characters. This regex allowed one of the problem names to work. [\u0000-\u001f\u0080-\u009f] I need to know if there are more. Upvote 0 Downvote
There are other restricted characters. This regex allowed one of the problem names to work. [\u0000-\u001f\u0080-\u009f] I need to know if there are more.
Jake Bunce Well-known member Feb 6, 2012 #6 This function verifies usernames: XenForo_DataWriter_User::_verifyUsername There are several restrictions, many of which are user-defined such as censored words. What error message are you getting? That will help to know which check is failing. Upvote 0 Downvote
This function verifies usernames: XenForo_DataWriter_User::_verifyUsername There are several restrictions, many of which are user-defined such as censored words. What error message are you getting? That will help to know which check is failing.
B bottiger Active member Feb 6, 2012 #7 Thanks that is more helpful. I got a "please_enter_name_without_using_control_characters" error. Upvote 0 Downvote
Jake Bunce Well-known member Feb 6, 2012 #8 Ok, it is failing this check: Code: // ignore check if unicode properties aren't compiled try { if (@preg_match("/\p{C}/u", $username)) { $this->error(new XenForo_Phrase('please_enter_name_without_using_control_characters'), 'username'); return false; } } catch (Exception $e) {} For reference: http://en.wikipedia.org/wiki/Control_character Upvote 0 Downvote
Ok, it is failing this check: Code: // ignore check if unicode properties aren't compiled try { if (@preg_match("/\p{C}/u", $username)) { $this->error(new XenForo_Phrase('please_enter_name_without_using_control_characters'), 'username'); return false; } } catch (Exception $e) {} For reference: http://en.wikipedia.org/wiki/Control_character