Module: Underworld::Omniauth::Callbacks
- Included in:
- CallbacksController
- Defined in:
- lib/underworld/omniauth/callbacks.rb
Instance Method Summary collapse
Instance Method Details
#default_service_callback ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/underworld/omniauth/callbacks.rb', line 7 def default_service_callback create_or_find_user if @user.persisted? # This will throw if @user is not activated sign_in_and_redirect @user, :event => :authentication (:notice, :success, :kind => __callee__.to_s) if else session["devise.omni_data"] = request.env["omniauth.auth"] redirect_to new_user_registration_url end end |