Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

Re: 2.0.2 Requiring Pass Q & A

Quote Reply
Re: 2.0.2 Requiring Pass Q & A In reply to
$cgi->{username} !~ /[a-zA-Z0-9]{2}/
shouldn't that regex be /^[a-zA-Z0-9]{2,}$/ ?
With the first one, any username with consecutive [a-zA-Z0-9] will pass (eg. abc!#$!%$), the second one fixes that :)

With requiring a user to enter a password question and answer, I can't really answer since I don't know too much about the admin side/internals of gmail...
You can try adding a line like:
if (!$cgi->{password_question}) { # or whatever the input name is :)
# $GMail::Template::TAGS{bad_...?}; don't know what this is
return $self->error('JOINERR_NO_PASS_QUESTION', 'WARN'); # create a new entry in the language.txt
}
if (!$cgi->{password_answer}) {
# $GMail::Template::TAGS{bad_...?}; don't know what this is
return $self->error('JOINERR_NO_PASS_ANSWER', 'WARN');}

someone fill in the blanks :)

Adrian
Subject Author Views Date
Thread 2.0.2 Requiring Pass Q & A ryel01 4317 Aug 6, 2001, 5:26 PM
Thread Re: 2.0.2 Requiring Pass Q & A
brewt 4219 Aug 6, 2001, 6:21 PM
Thread Re: 2.0.2 Requiring Pass Q & A
ryel01 4221 Aug 6, 2001, 7:01 PM
Post Re: 2.0.2 Requiring Pass Q & A
brewt 4192 Aug 6, 2001, 11:57 PM
Post Re: 2.0.2 Requiring Pass Q & A
ryel01 4210 Aug 6, 2001, 8:13 PM
Post Re: 2.0.2 Requiring Pass Q & A
ryel01 4212 Aug 6, 2001, 10:02 PM
Thread Re: 2.0.2 Requiring Pass Q & A
dearnet 4181 Aug 7, 2001, 11:52 AM
Thread Re: 2.0.2 Requiring Pass Q & A
ryel01 4159 Aug 7, 2001, 2:35 PM
Post Re: 2.0.2 Requiring Pass Q & A
dearnet 4150 Aug 7, 2001, 4:02 PM