diff options
| author | 2014-09-19 20:30:54 +0200 | |
|---|---|---|
| committer | 2014-09-19 20:30:54 +0200 | |
| commit | a14d325432b1d6515beaaccef73fa01f3ab3a85c (patch) | |
| tree | e68f9c4ec131dcd9cafe0de77960ff112e43934c /app/Controllers/indexController.php | |
| parent | f0dbe3c3ee8b0d4339d484aeb87cfc0dd4d444f7 (diff) | |
Auto-redirect from formLogin if already logged in
Diffstat (limited to 'app/Controllers/indexController.php')
| -rwxr-xr-x | app/Controllers/indexController.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/Controllers/indexController.php b/app/Controllers/indexController.php index bc03f1916..e8e26b142 100755 --- a/app/Controllers/indexController.php +++ b/app/Controllers/indexController.php @@ -337,6 +337,10 @@ class FreshRSS_index_Controller extends Minz_ActionController { } public function formLoginAction () { + if ($this->view->loginOk) { + Minz_Request::forward(array('c' => 'index', 'a' => 'index'), true); + } + if (Minz_Request::isPost()) { $ok = false; $nonce = Minz_Session::param('nonce'); |
