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:
parent
177ed8a356
commit
58cbd91512
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue