Gossamer Forum
Home : Products : DBMan : Discussions :

UID's containing underscores and dots

Quote Reply
UID's containing underscores and dots
Is it possible to make it so that UserID's can contain underscores (_) and dots (.)?

The default way reject this...

Thanks!!!

Quote Reply
Re: UID's containing underscores and dots In reply to
Sure...use regular expressions...

Some have been provided in these forums...search for regular expressions.

Regards,

Eliot Lee
Quote Reply
Re: UID's containing underscores and dots In reply to
In sub signup change:

Code:
unless ((length($in{'userid'}) >= 3) and (length($in{'userid'}) <= 12) and ($in{'userid'} =~ /^[a-zA-Z0-9]+$/)) {
to

Code:
unless ((length($in{'userid'}) >= 3) and (length($in{'userid'}) <= 12) and ($in{'userid'} =~ /^[a-zA-Z0-9._]+$/)) {
Using . and _ may cause problems so beware.

Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com