|
|
@ -129,7 +129,10 @@ class User extends ActiveRecord implements IdentityInterface |
|
|
|
public function rules() |
|
|
|
public function rules() |
|
|
|
{ |
|
|
|
{ |
|
|
|
return [ |
|
|
|
return [ |
|
|
|
|
|
|
|
['status', 'default', 'value' => self::STATUS_ACTIVE], |
|
|
|
['status', 'in', 'range' => [self::STATUS_ACTIVE, self::STATUS_DELETED]], |
|
|
|
['status', 'in', 'range' => [self::STATUS_ACTIVE, self::STATUS_DELETED]], |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
['role', 'default', 'value' => self::ROLE_USER], |
|
|
|
['role', 'in', 'range' => [self::ROLE_USER]], |
|
|
|
['role', 'in', 'range' => [self::ROLE_USER]], |
|
|
|
|
|
|
|
|
|
|
|
['username', 'filter', 'filter' => 'trim'], |
|
|
|
['username', 'filter', 'filter' => 'trim'], |
|
|
|