mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
#274: упразднена базовая модель KeyConfirmationForm, внедрён обновлённый валидатор EmailActivationKeyValidator
This commit is contained in:
@@ -22,6 +22,8 @@ class EmailActivationKeyValidator extends Validator {
|
||||
|
||||
public $expired = E::KEY_EXPIRE;
|
||||
|
||||
public $skipOnEmpty = false;
|
||||
|
||||
public function validateAttribute($model, $attribute) {
|
||||
$value = $model->$attribute;
|
||||
if (empty($value)) {
|
||||
|
Reference in New Issue
Block a user