Disable automatic login feature when clicking on email confirmation links
This commit is contained in:
parent
8dc2163ce5
commit
52867e15ac
|
@ -14,12 +14,8 @@ class ConfirmationsController < Devise::ConfirmationsController
|
|||
if signed_in?(resource_name)
|
||||
after_sign_in_path_for(resource)
|
||||
else
|
||||
sign_in(resource)
|
||||
if signed_in?(resource_name)
|
||||
after_sign_in_path_for(resource)
|
||||
else
|
||||
new_session_path(resource_name)
|
||||
end
|
||||
flash[:notice] += " Please sign in."
|
||||
new_session_path(resource_name)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
title: Disable automatic login after clicking email confirmation links
|
||||
merge_request: 7472
|
||||
author:
|
Loading…
Reference in New Issue