Fix #139
This commit is contained in:
@ -54,7 +54,7 @@ class ReCaptchaWidget extends InputWidget
|
|||||||
*/
|
*/
|
||||||
public function init()
|
public function init()
|
||||||
{
|
{
|
||||||
if (Yii::$app->get('recaptcha')) {
|
if (!Yii::$app->get('recaptcha')) {
|
||||||
throw new InvalidConfigException(Yii::t('usuario', 'The "recaptcha" component must be configured.'));
|
throw new InvalidConfigException(Yii::t('usuario', 'The "recaptcha" component must be configured.'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user