Sha256: e927d7fca33ebebf5332452ad59290b6e7c61e4747d09fd61ba169efe3c70242
Contents?: true
Size: 370 Bytes
Versions: 82
Compression:
Stored size: 370 Bytes
Contents
class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController def facebook data = env["omniauth.auth"] session["devise.facebook_data"] = data["extra"]["user_hash"] render :json => data end def sign_in_facebook user = User.find_by_email('user@test.com') user.remember_me = true sign_in user render :text => "" end end
Version data entries
82 entries across 76 versions & 10 rubygems