将current_user修改为User.current

dev_ec
Alec Zhou 6 years ago
parent dbaed7bc12
commit 923d702d01

@ -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

Loading…
Cancel
Save