(params[:user][:auth_provider] == current_user.auth_provider &&
params[:user][:auth_uid] == current_user.auth_uid)
update_user(current_user, params)
(params[:user][:auth_provider] == current_user.auth_provider &&
params[:user][:auth_uid] == current_user.auth_uid)
update_user(current_user, params)
else
session[:new_user_settings] = params
redirect_to auth_url(params[:user][:auth_provider], params[:user][:auth_uid])
else
session[:new_user_settings] = params
redirect_to auth_url(params[:user][:auth_provider], params[:user][:auth_uid])
elsif current_user.auth_provider.present?
# Verify external authenticator before moving on
session[:new_user] = current_user
elsif current_user.auth_provider.present?
# Verify external authenticator before moving on
session[:new_user] = current_user
session[:user_errors] = current_user.errors.as_json
redirect_to :action => "account", :display_name => current_user.display_name
session[:user_errors] = current_user.errors.as_json
redirect_to :action => "account", :display_name => current_user.display_name