about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorEugen <eugen@zeonfederated.com>2017-04-09 22:21:52 +0200
committerGitHub <noreply@github.com>2017-04-09 22:21:52 +0200
commit93db265be7b648fe095d5a92b76c5c7077c72ac2 (patch)
tree4b01e34d7b54280e4920ec71a5e08bd04e675f44 /app
parentc1729197458588a25e8f884db22360780e43d5c7 (diff)
Do not store last visited URL from API controllers (#1330)
Sign-in redirects you back to last visited URL, but in case of API requests,
this sometimes redirected users to an API URL that, of course, greeted them
with an {"error":"The access token is invalid"}
Diffstat (limited to 'app')
-rw-r--r--app/controllers/api_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/api_controller.rb b/app/controllers/api_controller.rb
index db16f82e5..57604f1dc 100644
--- a/app/controllers/api_controller.rb
+++ b/app/controllers/api_controller.rb
@@ -7,6 +7,7 @@ class ApiController < ApplicationController
   protect_from_forgery with: :null_session
 
   skip_before_action :verify_authenticity_token
+  skip_before_action :store_current_location
 
   before_action :set_rate_limit_headers