mirror of
https://github.com/yiisoft/yii2.git
synced 2025-12-01 06:59:29 +08:00
added web\Controller::goBack() as shortcut
goBack() will redirect user to his returnUrl fixes #925
This commit is contained in:
@@ -61,7 +61,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', array(
|
||||
'model' => $model,
|
||||
|
||||
Reference in New Issue
Block a user