X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/b04f76050d54c67844d5d4026993f6fab0edeae5..0fc7deecbeed58bc99c94a1e0b89ac51f006a163:/login/post/index.php diff --git a/login/post/index.php b/login/post/index.php index 276848e..c4dcffc 100644 --- a/login/post/index.php +++ b/login/post/index.php @@ -1,9 +1,9 @@ api) return; + if (!$User->login) { - http_response_code(303); $target = urlencode($_SERVER['REQUEST_URI']); - header("Location: /login?goto=$target"); - exit; + abort("/login?goto=$target", 303); } elseif ($User->admin('user') and $username = @$_REQUEST['login']) { try {