From d4df87c1e16bd854f37ff6c4a7bf7e9d2d5ee3e0 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 5 Jun 2017 22:30:50 +0100 Subject: [PATCH 1/1] Replace deprecated env method with request.env --- app/controllers/user_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index 430051c17..6b5079831 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -496,7 +496,7 @@ class UserController < ApplicationController ## # omniauth success callback def auth_success - auth_info = env["omniauth.auth"] + auth_info = request.env["omniauth.auth"] provider = auth_info[:provider] uid = auth_info[:uid] @@ -545,7 +545,7 @@ class UserController < ApplicationController when "pending" then unconfirmed_login(user) when "active", "confirmed" then - successful_login(user, env["omniauth.params"]["referer"]) + successful_login(user, request.env["omniauth.params"]["referer"]) when "suspended" then failed_login t("user.login.account is suspended", :webmaster => "mailto:#{SUPPORT_EMAIL}") else -- 2.43.2