Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #815

Merged
merged 9 commits into from
Aug 1, 2016
Prev Previous commit
Fix for missing code (my fault :)) in PR 773, Ticket #770: redirect a…
…fter failed login works now correctly
  • Loading branch information
Chris committed Jan 8, 2016
commit 594f0162d1e0fc42da199622f4ae634c79e2951d
6 changes: 5 additions & 1 deletion application/controller/LoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ public function login()
Redirect::to('user/index');
}
} else {
Redirect::to('login/index');
if (Request::post('redirect')) {
Redirect::to('login?redirect=' . ltrim(urlencode(Request::post('redirect')), '/'));
} else {
Redirect::to('login/index');
}
}
}

Expand Down