Sha256: 5a30bd070c7c998f4e97fda7543f7c53f1a14841a186d365cd79f2ac7365ad08
Contents?: true
Size: 477 Bytes
Versions: 98
Compression:
Stored size: 477 Bytes
Contents
class OmniauthCallbacksController < Devise::OmniauthCallbacksController def facebook @user = User.find_or_create_for_facebook_oauth(env['omniauth.auth'],current_user) if @user.persisted? sign_in_and_redirect @user, :event => :authentication end end def linkedin @user = User.find_or_create_for_linkedin_oauth(env['omniauth.auth'],current_user) if @user.persisted? sign_in_and_redirect @user, :event => :authentication end end end
Version data entries
98 entries across 98 versions & 2 rubygems