[support] getting the underscore to be unusable in user names

Cog Rusty cog.rusty at gmail.com
Wed Aug 1 15:01:17 UTC 2007


On 8/1/07, Neil: esl-lounge.com <neil at esl-lounge.com> wrote:
>
>
> I have run into trouble with the underscore. (concerning a mesh up between
> drupal and mediawiki)
>
> I would like to find a way of getting the underscore on the "banned list"
> for drupal registrations. If I try and register a name such as "great!!!", I
> get a message saying:
>
> "punctuation is not allowed except for periods, hyphens and underscores"
>
> I would like to make it impossible for underscores. Is this just a case of
> altering something in user.module?

That seems to be function user_validate_name() in user module.
Forbidding something (and not allowing something) should be safe.

> many thanks in advance
>
> Neil
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>


More information about the support mailing list