mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-01-06 00:17:49 -05:00
Modern syntax
This commit is contained in:
@@ -27,8 +27,8 @@ class OmniauthCallbacksController < Devise::OmniauthCallbacksController
|
||||
@authentication = action.establish_authentication(auth, member)
|
||||
|
||||
unless action.member_created?
|
||||
sign_in_and_redirect member, :event => :authentication #this will throw if @user is not activated
|
||||
set_flash_message(:notice, :success, :kind => auth['provider']) if is_navigational_format?
|
||||
sign_in_and_redirect member, event: :authentication #this will throw if @user is not activated
|
||||
set_flash_message(:notice, :success, kind: auth['provider']) if is_navigational_format?
|
||||
else
|
||||
session["devise.#{auth['provider']}_data"] = request.env["omniauth.auth"]
|
||||
sign_in member
|
||||
|
||||
Reference in New Issue
Block a user