Do not check captcha if mail session already exist (#644)
This commit is contained in:
parent
bf3cf444fb
commit
7087b63614
|
@ -130,7 +130,11 @@ sub extractMailInfo {
|
||||||
$self->{mail} = $self->param('mail');
|
$self->{mail} = $self->param('mail');
|
||||||
|
|
||||||
# Captcha for mail form
|
# Captcha for mail form
|
||||||
if ( $self->{captcha_mail_enabled} && $self->{mail} ) {
|
# Only if mail session does not already exist
|
||||||
|
if ( $self->{captcha_mail_enabled}
|
||||||
|
&& $self->{mail}
|
||||||
|
&& !$self->getMailSession( $self->{mail} ) )
|
||||||
|
{
|
||||||
$self->{captcha_user_code} = $self->param('captcha_user_code');
|
$self->{captcha_user_code} = $self->param('captcha_user_code');
|
||||||
$self->{captcha_check_code} = $self->param('captcha_code');
|
$self->{captcha_check_code} = $self->param('captcha_code');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user