Убрал:
Код: Выделить всё
public function rules() {
return [
[['fio', 'password', 'role'], 'required'],
[['first_name', 'last_name','email'], 'safe'],
[['is_active'], 'integer'],
[['password'], 'string', 'max' => 255]
];
}
/**