summaryrefslogtreecommitdiff
path: root/app/controllers/sessions_controller.rb
diff options
context:
space:
mode:
authorjnoortheen <jnoortheen@gmail.com>2016-12-06 22:32:30 +0530
committerjnoortheen <jnoortheen@gmail.com>2016-12-12 15:04:48 +0530
commit3c36d9dc9b3c2db45df6dce19357e9c4bdde366f (patch)
treee721858c7f69be2406fbd712e2abeb987576aebd /app/controllers/sessions_controller.rb
parent87f3a66c32f8cab6c814f81ec9dfea69f64d79cc (diff)
downloadgitlab-ce-3c36d9dc9b3c2db45df6dce19357e9c4bdde366f.tar.gz
fix: removed signed_out notification
test: replaced signed_out message check with check for sign_in button fixes #25294
Diffstat (limited to 'app/controllers/sessions_controller.rb')
-rw-r--r--app/controllers/sessions_controller.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb
index 38e7c6f4a48..8c698695202 100644
--- a/app/controllers/sessions_controller.rb
+++ b/app/controllers/sessions_controller.rb
@@ -37,6 +37,12 @@ class SessionsController < Devise::SessionsController
end
end
+ def destroy
+ super
+ # hide the signed_out notice
+ flash[:notice] = nil
+ end
+
private
# Handle an "initial setup" state, where there's only one user, it's an admin,