Replaces the OMNIAUTH_REGEX logic with a boolean
This commit is contained in:
@@ -13,10 +13,10 @@ class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
|
||||
end
|
||||
|
||||
def after_sign_in_path_for(resource)
|
||||
if resource.email_provided?
|
||||
super(resource)
|
||||
else
|
||||
if resource.pending_finish_signup?
|
||||
finish_signup_path
|
||||
else
|
||||
super(resource)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user