summaryrefslogtreecommitdiff
path: root/controllers/auth.php
diff options
context:
space:
mode:
authorAaron Parecki <aaron@parecki.com>2017-08-17 09:13:37 -0700
committerAaron Parecki <aaron@parecki.com>2017-08-17 09:13:37 -0700
commit606afdeb1001beff60a7dae64ef3f72d7e53d59e (patch)
tree2016eb956a43b2723479b7094cb42d3c20584cf2 /controllers/auth.php
parentecb0724049e13deeb65d6c3b9510598d8ffb7ff5 (diff)
redirect with missing session state instead of starting auth again
Diffstat (limited to 'controllers/auth.php')
-rw-r--r--controllers/auth.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/controllers/auth.php b/controllers/auth.php
index cd4c78e..d90652b 100644
--- a/controllers/auth.php
+++ b/controllers/auth.php
@@ -131,7 +131,7 @@ $app->get('/auth/callback', function() use($app) {
// If there is no state in the session, start the login again
if(!array_key_exists('auth_state', $_SESSION)) {
- $app->redirect('/auth/start?me='.urlencode($params['me']));
+ $app->redirect('/?error=missing_session_state');
return;
}