Skip to content

A free, self-hostable news aggregator…

Auto-redirect from formLogin if already logged in

Marien Fressinauda14d325432b1
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');