Avoiding users submitting emails as usernames?

Hey guys,

I know WP allows users to log in with their email addresses now, and I have modified our sign-up form with a search-replace to ask people to PLEASE NOT use their email address as their username (there are two fields).

As you might imagine, there is still about 1 user per 100 that just slaps their email in for both fields.

Is it possible to introduce something that only allows alpha-numerics for the username field? I’d say that would be a useful feature for s2M as standard. Currently it isn’t causing a great deal of grief but I know there are other plugins that it can make life hard for.

Thanks!

WordPress allows characters other than alphanumerics in usernames, and s2Member relies on WordPress routines to validate usernames, so s2Member allows them too.

But WordPress also has assigns a “nicename” to every user, which is essentially the username but with lowercase alphanumerics only. So there really isn’t a reason for this to cause a problem for other plugins. They should just use the nicename instead of the username.

Ah okay!

Thanks Tim. I knew WP was fine with @ symbols and a few others but wasn’t sure if it would be to the ongoing detriment of other parts of the site.

I can’t remember where but I recall something about making sure usernames were not emails in s2M documentation. Maybe it was an old forum post that’s no longer applicable.

I’ll let it be for now.
Thanks!