Commit 52867e15 authored by Brian Neel's avatar Brian Neel

Disable automatic login feature when clicking on email confirmation links

parent 8dc2163c
......@@ -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
flash[:notice] += " Please sign in."
new_session_path(resource_name)
end
end
end
end
---
title: Disable automatic login after clicking email confirmation links
merge_request: 7472
author:
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment