Mixed commit, user facebook issues
This commit is contained in:
@@ -292,6 +292,12 @@ class UserController < Users::ApplicationController
|
||||
|
||||
def obtain_token
|
||||
redirect_to user_omniauth_authorize_path('facebook') and return unless current_user.present?
|
||||
# redirect_to case platform
|
||||
# when 'android' then "file:///android_asset/user/index.html?user_id=#{current_user.id}&auth_token=#{current_user.authentication_token}"
|
||||
# when
|
||||
# else user_root_path(user_id: current_user.id, auth_token: current_user.authentication_token)
|
||||
# end
|
||||
# return
|
||||
respond_to do |format|
|
||||
format.html { render layout: 'user/obtain_token' }
|
||||
format.json do
|
||||
|
||||
Reference in New Issue
Block a user