Skip to content

Commit

Permalink
Hide 'timedout' flashes from Devise
Browse files Browse the repository at this point in the history
Devise uses `flash[:timedout]` for recording when a session is timed out and
this is automatically displayed to the user. Adding `timedout` to the list
of messages to hide in `app/views/layouts/_flashes.html.haml` hides this.

For reference: heartcombo/devise#1777
  • Loading branch information
jrmhaig committed Oct 17, 2022
1 parent 66b36d3 commit 733c7a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/layouts/_flashes.html.haml
@@ -1,3 +1,3 @@
- flash.each do |key, value|
- unless %w{hidden ga}.include? key
- unless %w{hidden ga timedout}.include? key
= govuk_notification_banner(key.capitalize, value, class: "govuk-notification-banner--#{key}")

0 comments on commit 733c7a3

Please sign in to comment.