Browse Source

advanced app: go back after login, not home

tags/2.0.0-beta
Carsten Brandt 11 years ago
parent
commit
016d796e95
  1. 2
      apps/advanced/backend/controllers/SiteController.php
  2. 2
      apps/advanced/frontend/controllers/SiteController.php

2
apps/advanced/backend/controllers/SiteController.php

@ -50,7 +50,7 @@ class SiteController extends Controller
$model = new LoginForm();
if ($model->load($_POST) && $model->login()) {
return $this->goHome();
return $this->goBack();
} else {
return $this->render('login', [
'model' => $model,

2
apps/advanced/frontend/controllers/SiteController.php

@ -60,7 +60,7 @@ class SiteController extends Controller
$model = new LoginForm();
if ($model->load($_POST) && $model->login()) {
return $this->goHome();
return $this->goBack();
} else {
return $this->render('login', [
'model' => $model,

Loading…
Cancel
Save