mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-09-12 22:19:21 -04:00
Modern syntax
This commit is contained in:
1 parent
4b7cffad04
commit
20b87e596a
1 file changed
+2
-2
@@ -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