On our 1.6 ST system we used email addresses as usernames. However, if I edit a user account with an email address as the username it complains of invalid characters in the username when I try to save. It's the @ symbol that's the problem.

Please help us to help you by reading and following the posting

guidelines located in this thread: Please read before requesting assistance.  The more information you give us the better we will be able to assist you. Thank you.Please

also consult your PHP error log and web server error log and post

anything that you think might be pertinent to the problem that you are

experiencing.

Sorry, I'm not sure how I could be much more precise.I have tried to edit staff accounts imported from our 1.6ST system whose user names are email addresses. If I try to save the edited account this I get a validation error saying "Username contains invalid characters". If I replace the @ symbol in the user name with, say, a full-stop there is no problem.Furthermore, if I try to add a new member of staff and use an email address as the user name, the same validation error occurs.

Did you actually read the link I provided? (Re: Please read before requesting assistance.)  If not then I recommend that you do.  Please pay special attention to the first sentence.

5 days later

Sorry, my fault. It's partly because you had responded to previous tickets I had created about upgrading. The version was 1.8.0.2 and then 1.8.1.

Yeah I really don't want to have to go looking for other threads to find out version.  With how many posts I read daily I didn't even think to check in another thread. :)I can confirm that 1.8.1 does not allow @ in usernames.Personally if my email address was e.mail@address.tld (beside the face that would be an awesome address to have) we would use e.mail as the username. :)  I don't know if the devs will be willing to change it since accounts also have an email address associated with it and they seem to be taking accounts more towards standard accounts (simple username/password).  But I will point out this thread as feedback for them.

Thanks.Using full email addresses as usernames is extremely common and it seems a little strange that they used to be allowed but are no longer. I only just noticed it as I don't use my email address for my own, admin, username and it was only when resetting a password for an old user account that I found it would not allow full email addresses.

7 months later

Hello,Not being able to use email addresses as usernames is an unnecessary restriction. It is a well accepted format for usernames and it seems peculiar that this has been introduced. However, on looking at the code in class.validator.php it seems more like an oversight than a deliberate choice.In 1.6ST there is no validation other than the minimum length. However, in 1.9.3 there is regular expression set up to check the type of characters that did not include the '@' symbol. I have added this to the regexp so that I can use email addresses as usernames.Mike

Write a Reply...