Changing Username Character Pattern causes failure to register
Hi Tikians,
We ran into a problem with @ symbols in a username (when use email as login is NOT selected).
To get around this, and also prevent users from putting spaces in usernames I tried to edit the username pattern in the Login Admin.
Here's the default according to the dev pages:
/^() '-_a-zA-Z0-9@\.*$/
Now, I tried just removing the space and @ like so:
/^()'-_a-zA-Z0-9\.*$/
but when I used that, ALL registration attempts return "invalid username".
/^() '-_a-zA-Z0-9@\.*$/
But all registrations continued to fail. I cleared the tiki caches without effect. Panicking, I removed all and left the field blank. Now registrations work, but now the whole keyboard is available for usernames, which is what we didn't want.
How do we limit the usernames to one word, alphanumeric only?
Thanks!
p.s. How does the registration form ajax gizmo know what are valid usernames? Is is supposed to use the pattern in the login admin panel, or is there a separate javascript somewhere? Because it didn't seem to notice when I changed the pattern in the admin.