New versions
This commit is contained in:
@@ -13,6 +13,11 @@ class UserController < Users::ApplicationController
|
||||
end
|
||||
|
||||
def obtain_token
|
||||
#user = User.find_by_email('bterkuile@gmail.com')
|
||||
#sign_in user
|
||||
#render layout: 'user/obtain_token'
|
||||
##render json: json_response(ok: true, auth_token: user.authentication_token, user_id: user.id)
|
||||
#return
|
||||
if current_user.blank?
|
||||
case params[:provider]
|
||||
when 'instagram' then redirect_to user_instagram_omniauth_authorize_path
|
||||
|
||||
Reference in New Issue
Block a user