Replaces the OMNIAUTH_REGEX logic with a boolean

This commit is contained in:
kikito
2016-01-18 17:30:21 +01:00
parent 981e82fb4d
commit f74028e3b5
2 changed files with 14 additions and 16 deletions

View File

@@ -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