Fixed login form to use redir() instead of hardcoded header() call.
[kolarny.git] / 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 {