Fixed Bug: "You are already signed in" after login #2314

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants

alienxxx commented Mar 3, 2013

In #require_no_authentication changed line
 if authenticated && resource = warden.user(resource_name)
to
 if authenticated && resource == warden.user(resource_name)
(note the equal signs) to fix a Bug that showed "You are already signed in" after login.

@alienxxx alienxxx devise_controller.rb: Changed = to ==
In #require_no_authentication changed line
 if authenticated && resource = warden.user(resource_name)
to
 if authenticated && resource == warden.user(resource_name)
to fix a Bug that showed "You are already signed in" after login.
61e69f3
Owner

josevalim commented Mar 4, 2013

The current code is intentional and changing it causes the build to fail, could you please investigate? Also, can you please add a test case? Thanks!!

josevalim closed this Apr 1, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment