@@ -254,7 +254,7 @@ class SiteController extends FrontendController | |||
if ($model->load(Yii::$app->request->post())) { | |||
$user = $model->signup(); | |||
if ($user && $this->getUserCurrent()->login($user)) { | |||
if ($user && Yii::$app->getUser()->login($user)) { | |||
if ($model->isProducer()) { | |||
$this->redirect(Yii::$app->urlManagerBackend->createAbsoluteUrl(['site/index'])); | |||
} |