How to use regexp on registration phase?

Hi!

How to make restriction of chars used for registration of account?
Example: user is allowed to use only english letters, digits, hyphen, underscore and period in JabberID and password.

I think regexp usefull in that case:
--------------begin text from guide--------------
{user_regexp, <regexp>}
Matches any local user with a name that matches at the first virtual host. Example:
{acl, tests, {user, "^test[0-9]*$"}}.
--------------end text from guide----------------

But how to implement it on registration phase?

P.S. Sorry for bad english.

Example config

Try something like:

{acl, asciitext, {user_regexp, "^([a-z, 0-9])*$", "example.org"}}.
{access, register, [{allow, asciitext}, {deny, all}]}.
Syndicate content