]> cat aescling's git repositories - mastodon.git/commit
Remove confusing “You are already signed in.” flash message (#13547)
authorThibG <thib@sitedethib.com>
Sun, 10 May 2020 08:16:39 +0000 (10:16 +0200)
committerGitHub <noreply@github.com>
Sun, 10 May 2020 08:16:39 +0000 (10:16 +0200)
commit45202f79ef45f0d141b1e2911b4fa34950777cad
treeb28095f2fc089c6379526027166cf30cce769a08
parenta4240fd0272eb79b7d99cccfa7d14e8a1e12921d
Remove confusing “You are already signed in.” flash message (#13547)

When attempting to access the log-in page while already logged in,
Devise's `require_no_authentication` kicks in and sets a flash
message “You are already signed in.”

In almost all cases, this also causes a redirect to /web, which
does not display or clear flash messages, thus leaving the message
to a potentially much later date, like for instance, accessing
/preferences several minutes after being redirected to /web.
app/controllers/auth/sessions_controller.rb