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