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