Commit 19a38a0a authored by Gabriel Mazetto's avatar Gabriel Mazetto

Geo OAuth authentication should use 'bypass: true' to prevent writing

to the database
parent 5316aa63
......@@ -25,7 +25,7 @@ class Oauth::GeoAuthController < ActionController::Base
user = User.find(remote_user['id'])
if user && sign_in(user)
if user && sign_in(user, bypass: true)
return_to = oauth.get_oauth_state_return_to
redirect_to(return_to || root_path)
else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment