Browse Source

Captcha:: have to start with /, otherwise it does not work in modules. (#13006)

* Captcha:: have to start with /, otherwise it does not work in modules.
tags/3.0.0-alpha1
boehsermoe 8 years ago committed by Carsten Brandt
parent
commit
c2cd20ee49
  1. 1
      framework/CHANGELOG.md
  2. 2
      framework/captcha/Captcha.php

1
framework/CHANGELOG.md

@ -7,6 +7,7 @@ Yii Framework 2 Change Log
- Enh #11058: Add `$checkAjax` parameter to method `yii\web\Controller::redirect()` which controls redirection in AJAX and PJAX requests (ivanovyordan)
- Enh #12592: Optimized `yii\filters\AccessController` on processing accessrules (dynasource)
- Enh #12938: Allow to pass additional parameters to `yii\base\View::renderDynamic()` (mikehaertl)
- Enh #13006: Added a `/` to the `yii\captcha\Captcha::$captchaAction` string to work correctly in a module also (boehsermoe)
- Removed methods marked as deprected in 2.0.x (samdark)
- Chg #10771: Consistent behavior of `run()` method in all framework widgets. All return the result now for better extensibility (pkirill99, cebe)
- Chg #11397: Minimum required version of PHP is 5.5.0 now (samdark)

2
framework/captcha/Captcha.php

@ -65,7 +65,7 @@ class Captcha extends InputWidget
* The action represented by this route must be an action of [[CaptchaAction]].
* Please refer to [[\yii\helpers\Url::toRoute()]] for acceptable formats.
*/
public $captchaAction = 'site/captcha';
public $captchaAction = '/site/captcha';
/**
* @var array HTML attributes to be applied to the CAPTCHA image tag.
* @see \yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered.

Loading…
Cancel
Save