Fixed captcha validation rules for invite to use only on registration screen.

This commit is contained in:
baleks 2019-02-19 18:09:27 +02:00
parent 62e496e529
commit 1fb40b47aa

View File

@ -65,7 +65,7 @@ class Invite extends ActiveRecord
[['email'], 'unique'],
[['email'], 'email'],
[['email'], 'unique', 'targetClass' => User::class, 'message' => Yii::t('UserModule.base', 'E-Mail is already in use! - Try forgot password.')],
[['captcha'], 'captcha', 'captchaAction' => 'user/auth/captcha'],
[['captcha'], 'captcha', 'captchaAction' => 'user/auth/captcha', 'on' => static::SOURCE_INVITE],
];
}