I suddenly realized that username can be any character after seeing someone just made his or her account in Japanese characters. I don't really have a problem with that but just would like to let them register only with alphabetical characters to keep the things tidy. Is there anyway to do this?
|
feedback
|
|
Check out the Custom Username Validation module, it seems like it should do exactly what you like. If not, you can set up "Access Rules" in the administration pages. Set up multiple access rules to deny usernames that contain undesired symbols. Access Rules Docs. Unfortunately that would take a lot of time to deny all non-alphabetical characters. Finally, you could also create a custom module and use | |||
feedback
|
|
Using hook_form_alter You can do like this,
| |||
|
feedback
|
|
In addition to the module or hook_form_alter() you can also use the username originality AJAX check module to show a message to your user before they submit the form. I was able to modify the code in that module to do my custom validation - I don't like special characters in usernames either ;-) | |||
|
feedback
|