Move captcha template parameters into plugin (#1652)
This commit is contained in:
parent
8c562c7817
commit
857ee8b0a0
|
@ -101,7 +101,8 @@ sub setCaptcha {
|
|||
my ( $token, $image ) = $self->getCaptcha;
|
||||
$self->logger->debug('Prepare captcha');
|
||||
$req->token($token);
|
||||
$req->captcha($image);
|
||||
$req->tplParams->{CAPTCHA_SRC} = $req->captcha($image);
|
||||
$req->tplParams->{CAPTCHA_SIZE} = $self->rndmax;
|
||||
}
|
||||
|
||||
1;
|
||||
|
|
|
@ -313,15 +313,6 @@ sub display {
|
|||
: ()
|
||||
),
|
||||
( $req->token ? ( TOKEN => $req->token ) : () ),
|
||||
(
|
||||
$req->captcha
|
||||
? (
|
||||
CAPTCHA_SRC => $req->captcha,
|
||||
CAPTCHA_SIZE => $self->{conf}->{captcha_size}
|
||||
|| 6
|
||||
)
|
||||
: ()
|
||||
),
|
||||
( $req->data->{waitingMessage} ? ( WAITING_MESSAGE => 1 ) : () ),
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue