Explorar el Código

added web\Controller::goBack() as shortcut

goBack() will redirect user to his returnUrl
fixes #925
Carsten Brandt hace 12 años
padre
commit
44b1fce99b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      controllers/SiteController.php

+ 1 - 1
controllers/SiteController.php

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