email required

This commit is contained in:
glambertessa 2020-05-22 11:25:21 +03:00
parent f90a70811e
commit ddd14e436c
2 changed files with 1 additions and 2 deletions

View File

@ -4,7 +4,6 @@ use common\classes\Debug;
use kartik\select2\Select2;
use mihaildev\elfinder\InputFile;
use unclead\multipleinput\MultipleInput;
use unclead\multipleinput\examples\models\ExampleModel;
use yii\helpers\Html;
use yii\widgets\ActiveForm;

View File

@ -65,7 +65,7 @@ class UserCard extends \yii\db\ActiveRecord
public function rules()
{
return [
[['fio', 'status', 'gender'], 'required'],
[['fio', 'status', 'gender', 'email'], 'required'],
[['gender', 'status', 'position_id', 'id_user'], 'integer'],
[['dob', 'created_at', 'updated_at', 'deleted_at'], 'safe'],
[['fio', 'passport', 'photo', 'email', 'resume', 'city'], 'string', 'max' => 255],