Skip to content

Wrong flash message is rendered when signing out #5519

@MattBudz

Description

@MattBudz

Environment

  • Ruby 3.0.3p157
  • Rails 7.0.4
  • Devise 4.8.1

Current behavior

When a signed-in user visits destroy_user_session_path the flash message is "You need to sign in before continuing." (en.devise.failure.unauthenticated)

For reference, the link is <%= link_to 'Sign out', destroy_user_session_path, data: { turbo_method: :delete } %>

Expected behavior

When a signed-in user visits destroy_user_session_path the flash message should be "Signed out successfully."(en.devise.sessions.signed_out)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions