修复重定向过多的bug

dev_partners
Alec Zhou 6 years ago
parent 16d285d2fd
commit 90e7e056ec

@ -202,7 +202,11 @@ class OauthController < ApplicationController
self.logged_user = openi.user if openi.present? && openi.user.present?
original_url = params[:original_url]
redirect_to original_url
if current_user.logged?
redirect_to original_url
else
redirect_to signin_path
end
end
def get_token_callback

Loading…
Cancel
Save