瀏覽代碼

Refactoring services #885

refactoring
Guillaume 1 年之前
父節點
當前提交
e28ce02b08
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      frontend/controllers/SiteController.php

+ 1
- 1
frontend/controllers/SiteController.php 查看文件

@@ -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']));
}

Loading…
取消
儲存