X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/b04f76050d54c67844d5d4026993f6fab0edeae5..da2d6e5537e9fdcd6f424ea1cc8ab6ef8f45727e:/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 {