Browse Source

Refactoring services #885

refactoring
Guillaume 1 year ago
parent
commit
e28ce02b08
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frontend/controllers/SiteController.php

+ 1
- 1
frontend/controllers/SiteController.php View File

if ($model->load(Yii::$app->request->post())) { if ($model->load(Yii::$app->request->post())) {
$user = $model->signup(); $user = $model->signup();


if ($user && $this->getUserCurrent()->login($user)) {
if ($user && Yii::$app->getUser()->login($user)) {
if ($model->isProducer()) { if ($model->isProducer()) {
$this->redirect(Yii::$app->urlManagerBackend->createAbsoluteUrl(['site/index'])); $this->redirect(Yii::$app->urlManagerBackend->createAbsoluteUrl(['site/index']));
} }

Loading…
Cancel
Save