This commit is contained in:
Kavalar 2024-02-06 00:09:08 +03:00
parent eb1abd41e5
commit 1a8b415062
3 changed files with 3 additions and 2 deletions

View File

@ -4,7 +4,7 @@
/* @var $user common\models\User */ /* @var $user common\models\User */
?> ?>
<p>Здравствуйте, <b><?= $user->username ?></b></p> , <p>Здравствуйте, <b><?= $user->username ?></b>,</p>
Благодорим за регистрацию. Благодорим за регистрацию.

View File

@ -257,6 +257,7 @@ class User extends ActiveRecord implements IdentityInterface, UserRbacInterface
$profile = new UserCard(); $profile = new UserCard();
$profile->id_user = $user->id; $profile->id_user = $user->id;
$profile->status = $status; $profile->status = $status;
$profile->email = $email;
$profile->fio = $email; $profile->fio = $email;
if ($profile->save()) { if ($profile->save()) {
return $profile; return $profile;

View File

@ -73,7 +73,7 @@ class SqlController extends Controller
public function actionCreateProfile() public function actionCreateProfile()
{ {
if ($profile = User::createSimpleProfile($this->email, 17)) { if ($profile = User::createSimpleProfile($this->email, 18)) {
echo "Профиль $profile->id успешно создан\n"; echo "Профиль $profile->id успешно создан\n";
return; return;
} }