Fixed login form to use redir() instead of hardcoded header() call. master
authorLadislav Láska <laska@kam.mff.cuni.cz>
Thu, 23 Jun 2011 10:28:12 +0000 (12:28 +0200)
committerLadislav Láska <laska@kam.mff.cuni.cz>
Thu, 23 Jun 2011 10:28:12 +0000 (12:28 +0200)
controllers/login.php

index 037ddcb086d504f8e5a0c914c45263c0f16e2adf..e11cb2a41876708a030ca2e936d6f026bb4e45de 100644 (file)
@@ -10,7 +10,7 @@ if (isset($_POST['login']) && isset($_POST['password'])) {
        } else {
                $auth->login($_POST['login'], $_POST['password']);
                if ($auth->verify()) {
-                       header("Location: /");
+                       redir("index");
                        box_succ(tr("Úspěch!"));
                        $showform = false;
                } else {