Green user sign in flow

This commit is contained in:
2014-12-24 09:34:05 +01:00
parent a30b17648d
commit 4faee9aa6e
6 changed files with 126 additions and 37 deletions
+1 -1
View File
@@ -290,7 +290,7 @@ class UserController < Users::ApplicationController
#end
def obtain_token
redirect_to user_omniauth_authorize_path('facebook') and return unless current_user.present?
redirect_to user_omniauth_authorize_path(params[:provider].presence || '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