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; }