includes a "cancel" option when logging in via omniauth

restores missing proposal in common_actions
This commit is contained in:
kikito
2016-02-02 16:03:28 +01:00
parent eda2c419f7
commit 6ba1db1a02
6 changed files with 25 additions and 3 deletions

View File

@@ -82,9 +82,7 @@ class ApplicationController < ActionController::Base
end
def ensure_signup_complete
if user_signed_in? &&
current_user.registering_with_oauth &&
%w(finish_signup do_finish_signup).exclude?(action_name)
if user_signed_in? && !devise_controller? && current_user.registering_with_oauth
redirect_to finish_signup_path
end
end