From 1a8b41506255053c0ee4637a60c8cb5413ccb19c Mon Sep 17 00:00:00 2001 From: Kavalar Date: Tue, 6 Feb 2024 00:09:08 +0300 Subject: [PATCH] some fix --- common/mail/signup-html.php | 2 +- common/models/User.php | 1 + console/controllers/SqlController.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/common/mail/signup-html.php b/common/mail/signup-html.php index 9f4dcfb..2104447 100644 --- a/common/mail/signup-html.php +++ b/common/mail/signup-html.php @@ -4,7 +4,7 @@ /* @var $user common\models\User */ ?> -

Здравствуйте, username ?>

, +

Здравствуйте, username ?>,

Благодорим за регистрацию. diff --git a/common/models/User.php b/common/models/User.php index 3bbd01c..230ce44 100755 --- a/common/models/User.php +++ b/common/models/User.php @@ -257,6 +257,7 @@ class User extends ActiveRecord implements IdentityInterface, UserRbacInterface $profile = new UserCard(); $profile->id_user = $user->id; $profile->status = $status; + $profile->email = $email; $profile->fio = $email; if ($profile->save()) { return $profile; diff --git a/console/controllers/SqlController.php b/console/controllers/SqlController.php index a5dd185..a9cc143 100755 --- a/console/controllers/SqlController.php +++ b/console/controllers/SqlController.php @@ -73,7 +73,7 @@ class SqlController extends Controller public function actionCreateProfile() { - if ($profile = User::createSimpleProfile($this->email, 17)) { + if ($profile = User::createSimpleProfile($this->email, 18)) { echo "Профиль $profile->id успешно создан\n"; return; }