1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00

Do not do double redirect on after confirmation path

This commit is contained in:
José Valim 2013-08-13 18:55:50 +02:00
parent 177ed8a356
commit 58cbd91512

View file

@ -37,6 +37,10 @@ class Devise::ConfirmationsController < DeviseController
# The path used after confirmation.
def after_confirmation_path_for(resource_name, resource)
new_session_path(resource_name)
if Devise.allow_insecure_sign_in_after_confirmation
after_sign_in_path_for(resource)
else
new_session_path(resource_name)
end
end
end