From: Christian Weiske Date: Fri, 28 Jul 2017 18:17:47 +0000 (+0200) Subject: Use central error method X-Git-Url: https://git.cweiske.de/indieauth-openid.git/commitdiff_plain/93ca0e9f11d88b3d9b7bd92537c22a27714d6361?hp=63a168ff8f65c0eea3459aee32efc5e9be9cd5de Use central error method --- diff --git a/www/index.php b/www/index.php index cb69845..ca89855 100644 --- a/www/index.php +++ b/www/index.php @@ -246,9 +246,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'GET') { $me = validate_token($token, $redirect_uri, $client_id, $state); if ($me === false) { - header('HTTP/1.0 400 Bad Request'); - echo "Validating token failed\n"; - exit(1); + error('Validating token failed'); } header('Content-type: application/x-www-form-urlencoded'); echo 'me=' . urlencode($me);