Reorganized captcha code.
This commit is contained in:
parent
7f05967cf5
commit
da0afe1957
@ -13,7 +13,7 @@ class SiteController extends Controller
|
|||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
'captcha' => array(
|
'captcha' => array(
|
||||||
'class' => 'yii\web\CaptchaAction',
|
'class' => 'yii\captcha\CaptchaAction',
|
||||||
'fixedVerifyCode' => YII_ENV_DEV ? 'testme' : null,
|
'fixedVerifyCode' => YII_ENV_DEV ? 'testme' : null,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
use yii\helpers\Html;
|
use yii\helpers\Html;
|
||||||
use yii\widgets\ActiveForm;
|
use yii\widgets\ActiveForm;
|
||||||
use yii\widgets\Captcha;
|
use yii\captcha\Captcha;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var yii\base\View $this
|
* @var yii\base\View $this
|
||||||
|
Loading…
Reference in New Issue
Block a user