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
......@@ -24,7 +24,7 @@ class Admin::GeoNodesController < Admin::ApplicationController
def repair
@node = GeoNode.find(params[:id])
if @node.primary? || !@node.missing_oauth_application?
redirect_to admin_geo_nodes_path, notice: "This node doesn't need to be repaired."
elsif @node.save
......
......@@ -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