app/controllers/api/user_controller.rb in gds-sso-3.0.5 vs app/controllers/api/user_controller.rb in gds-sso-3.1.0
- old
+ new
@@ -8,10 +8,10 @@
GDS::SSO::Config.user_klass.find_for_gds_oauth(oauth_hash)
head :ok
end
def reauth
- user = GDS::SSO::Config.user_klass.find_by_uid(params[:uid])
+ user = GDS::SSO::Config.user_klass.where(:uid => params[:uid]).first
if user.nil? || user.set_remotely_signed_out!
head :ok
else
head 500
end