Sha256: 6a2352db533a9bd75faee66989269fcf3317d26a34aa36f780977c9959013f7d
Contents?: true
Size: 540 Bytes
Versions: 147
Compression:
Stored size: 540 Bytes
Contents
class OmniauthCallbacksController < Devise::OmniauthCallbacksController def facebook #print env['omniauth.auth'] @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 linked_in #print env['omniauth.auth'] @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
147 entries across 147 versions & 4 rubygems