summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorMarin Jankovski <marin@gitlab.com>2017-01-24 10:06:57 +0000
committerMarin Jankovski <marin@gitlab.com>2017-01-24 10:06:57 +0000
commit58786a7a41b36e84dda91cdca04671b6e613974d (patch)
treefe678c42817402ec7a76b53ab7c494b989f9cc6b /app
parentb60de9c0fd90c310d2a4146f75b67f9f360cbd6c (diff)
parent52867e15acacf842e26816c9143c59fc9086c6fb (diff)
downloadgitlab-ce-58786a7a41b36e84dda91cdca04671b6e613974d.tar.gz
Merge branch 'disable-automatic-login-on-email-confirmation' into 'master'
Disable automatic login feature when clicking on email confirmation links See merge request !7472
Diffstat (limited to 'app')
-rw-r--r--app/controllers/confirmations_controller.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/app/controllers/confirmations_controller.rb b/app/controllers/confirmations_controller.rb
index 3da44b9b888..306afb65f10 100644
--- a/app/controllers/confirmations_controller.rb
+++ b/app/controllers/confirmations_controller.rb
@@ -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