From 923d702d010ef9c0641028963185cc87811e5f64 Mon Sep 17 00:00:00 2001 From: Alec Zhou Date: Mon, 13 May 2019 11:29:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86current=5Fuser=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=B8=BAUser.current?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/oauth_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/oauth_controller.rb b/app/controllers/oauth_controller.rb index f2a797b7..780cc4ba 100644 --- a/app/controllers/oauth_controller.rb +++ b/app/controllers/oauth_controller.rb @@ -203,7 +203,7 @@ class OauthController < ApplicationController self.logged_user = openi.user if openi.present? && openi.user.present? original_url = params[:original_url] - if current_user.logged? + if User.current.logged? redirect_to original_url else redirect_to signin_path