Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

Re: Allow Only a-zA-Z0-9 in usernames?

Quote Reply
Re: Allow Only a-zA-Z0-9 in usernames? In reply to
You can hard code it into GMail::NoAuth::Join.pm until you get an answer. In the check_user sub (around line 221) add an if statement something like this:

In Reply To:
if ($cgi->{username} !~ /^[a-zA-Z0-9]+$/) {
$GMail::Template::TAGS{bad_username} = 1;
return $self->error('JOINERR_LOGIN_FMT', 'WARN', $cgi->{username});
}
right above the first if statement around line 240. That regex might need a little work, I am not very good with them yet. You might want to edit the template language for JOINERR_LOGIN_FMT to match the error a little better also. Make a back-up of the module before you make changes!

Regards,
Charlie


Subject Author Views Date
Thread Allow Only a-zA-Z0-9 in usernames? ryel01 5834 Jul 25, 2001, 11:00 PM
Thread Re: Allow Only a-zA-Z0-9 in usernames?
Alex 5702 Jul 26, 2001, 9:29 AM
Thread Re: Allow Only a-zA-Z0-9 in usernames?
ryel01 5693 Jul 26, 2001, 1:39 PM
Thread Re: Allow Only a-zA-Z0-9 in usernames?
dearnet 5699 Jul 26, 2001, 10:44 PM
Thread Re: Allow Only a-zA-Z0-9 in usernames?
brewt 5688 Jul 27, 2001, 1:36 AM
Thread Re: Allow Only a-zA-Z0-9 in usernames?
ryel01 5705 Jul 27, 2001, 3:07 AM
Thread Re: Allow Only a-zA-Z0-9 in usernames?
Chaz 5649 Jul 27, 2001, 6:39 AM
Post Re: Allow Only a-zA-Z0-9 in usernames?
ryel01 5619 Jul 29, 2001, 2:54 AM
Post Re: [Chaz] Allow Only a-zA-Z0-9 in usernames?
anup123 5411 Aug 8, 2003, 1:17 PM
Thread Re: Allow Only a-zA-Z0-9 in usernames?
Alex 5667 Jul 27, 2001, 9:15 AM
Post Re: Allow Only a-zA-Z0-9 in usernames?
dearnet 5568 Jul 29, 2001, 10:45 AM