diff options
author | jnoortheen <jnoortheen@gmail.com> | 2016-11-29 22:01:01 +0530 |
---|---|---|
committer | jnoortheen <jnoortheen@gmail.com> | 2016-12-07 20:30:28 +0530 |
commit | 6ab74b1cb3f6982c52c7124a6e9e451c83d33645 (patch) | |
tree | dd273ee924c318ea75b8015ddb5e4eaacd2b1a23 /app/controllers/sessions_controller.rb | |
parent | e09c6df0682c499e221a0da41ac263482fbcf568 (diff) | |
download | gitlab-ce-6ab74b1cb3f6982c52c7124a6e9e451c83d33645.tar.gz |
fix: 24982- Remove'Signed in successfully' message
After this change the sign-in-success flash message will not be shown
refactor: set flash message to be nil while signing in
test: changed tests to reflect removal of sign-in message
refactor: adding signed_in message back
See Merge Request !7837
issue#24982
Diffstat (limited to 'app/controllers/sessions_controller.rb')
-rw-r--r-- | app/controllers/sessions_controller.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb index 5d7ecfeacf4..38e7c6f4a48 100644 --- a/app/controllers/sessions_controller.rb +++ b/app/controllers/sessions_controller.rb @@ -31,6 +31,8 @@ class SessionsController < Devise::SessionsController resource.update_attributes(reset_password_token: nil, reset_password_sent_at: nil) end + # hide the signed-in notification + flash[:notice] = nil log_audit_event(current_user, with: authentication_method) end end |