some fix
This commit is contained in:
parent
eb1abd41e5
commit
1a8b415062
@ -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>
|
||||||
|
|
||||||
Благодорим за регистрацию.
|
Благодорим за регистрацию.
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user