$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
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