summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2016-02-18 18:47:35 +0100
committerJames Lopez <james@jameslopez.es>2016-02-18 18:47:35 +0100
commit9597920c6371db5555415705643ad26026d198fb (patch)
tree6887852ff0b22603d9ee5567e2bf5991c32c7ab9
parent3de6edd6041a725aaffba95603d4eb2912627d42 (diff)
downloadgitlab-ce-9597920c6371db5555415705643ad26026d198fb.tar.gz
attempting to fix omniauth problem
-rw-r--r--app/controllers/oauth/authorizations_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/oauth/authorizations_controller.rb b/app/controllers/oauth/authorizations_controller.rb
index 24025d8c723..874af5de243 100644
--- a/app/controllers/oauth/authorizations_controller.rb
+++ b/app/controllers/oauth/authorizations_controller.rb
@@ -7,6 +7,7 @@ class Oauth::AuthorizationsController < Doorkeeper::AuthorizationsController
if pre_auth.authorizable?
if skip_authorization? || matching_token?
auth = authorization.authorize
+ reset_session
redirect_to auth.redirect_uri
else
render "doorkeeper/authorizations/new"