Skip to content

Commit

Permalink
Hook verifymail.io validator to the frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
proditis committed Mar 21, 2024
1 parent 2d83d46 commit 8ab0391
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/models/forms/SignupForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public function rules()
}],
['username', '\app\components\validators\HourRegistrationValidator', 'client_ip'=>\Yii::$app->request->userIp, 'max'=>Yii::$app->sys->signup_HourRegistrationValidator,'when' => function($model) { return Yii::$app->sys->signup_HourRegistrationValidator!==false;}],
['username', '\app\components\validators\TotalRegistrationsValidator', 'client_ip'=>\Yii::$app->request->userIp, 'max'=>Yii::$app->sys->signup_TotalRegistrationsValidator,'when' => function($model) { return Yii::$app->sys->signup_TotalRegistrationsValidator!==false;}],
['email', '\app\components\validators\VerifymailValidator', 'when' => function($model) { return (bool)Yii::$app->sys->signup_ValidatemailValidator;}],
['email', '\app\components\validators\StopForumSpamValidator', 'max'=>Yii::$app->sys->signup_StopForumSpamValidator,'when' => function($model) { return Yii::$app->sys->signup_StopForumSpamValidator!==false;}],
['email', '\app\components\validators\MXServersValidator', 'mxonly'=>true, 'when' => function($model) { return Yii::$app->sys->signup_MXServersValidator!==false;}],
//['email', '\app\components\validators\WhoisValidator', ],
Expand Down

0 comments on commit 8ab0391

Please sign in to comment.