User name invalid -- what is the expected syntax?

laurent amsaleg Posted in Technical Support 2 years ago

Hi. I have trouble understanding the syntax of usernames that OSSN expects. If I try to enter a user name such as Joe.Smith, this will fail while JoeSmith will work. Why is that? What is the syntax OSSN implicitly assumes for user names? Bonus: is there a way to allow "." inside a username?

Replies
French Laurent amsaleg Replied 2 years ago

Thanks Arsalan for these answers. However, why can't we at least use the "." character in user names? Often, this is a very handy way to separate first from last name. I understand that a space might cause troubles, but ".", or "_". Why can't this be used?

Indonesian Arsalan Shah Replied 2 years ago

I am afraid no way to add spaces and special characters in username

us Eric Croskey Replied 2 years ago

Is there a way to allow spaces and special characters? It would be nice. I've gotten a few complaints that people simply won't sign up because they get frustrated with the username limitations.

Indonesian Arsalan Shah Replied 2 years ago

https://github.com/opensource-socialnetwork/opensource-socialnetwork/blob/v6.x/classes/OssnUser.php#L255

Only alphanumeric are allowed no special characters nor spaces. Min 6