plataformatec/devise — Issue #1645: session rollback generates wrong flash message
Author: ericmnel
Created: 2012-02-13 23:09:43+00:00
State: open

Started POST "/logins/sign_in" for 127.0.0.1 at 2012-02-13 16:01:45 -0700
...
^[[1m^[[35m (0.3ms)^[[0m ROLLBACK
Rendered devise/shared/_links.erb (6.3ms)
Rendered devise/sessions/new.html.erb within layouts/devise_common (16.1ms)
Completed 200 OK in 477ms (Views: 89.3ms | ActiveRecord: 0.0ms)

The devise login screen generates the message "Signed in successfully." but does not move on to the next screen. When you refresh the screen it then goes to the next as if it was logged in. It seems like the flash message should be one of the rollback errors instead of the "Signed in successfully" message.

I notice this because I have a shared login table across multiple hosts, where logins are valid only on one of the many hosts.