mirror of
https://github.com/humhub/humhub.git
synced 2025-04-21 07:31:53 +02:00
Fixed captcha validation rules for invite to use only on registration screen.
This commit is contained in:
parent
62e496e529
commit
1fb40b47aa
@ -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],
|
||||
];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user