2.0.0.pre7 hobo_login - block returning false allows login on second attempt
Reported by Tim Griffin | December 6th, 2012 @ 10:19 PM
According to notes CHANGES-1.1.txt, returning false from a block passed to hobo_login will prevent the user from logging in.
In a new test 2.0.0.pre7 application, Hobo is allowing a login on a second attempt even if hobo_login block returns false.
Simple test:
def login
hobo_login do
flash[:error] = "This is just a test."
return false
end
end
On first login, you will be rejected and the flash[:error] message will be shown. If you then try again, you will be granted access.
Comments and changes to this ticket
-
Tim Griffin December 6th, 2012 @ 10:25 PM
Even adding
current_user.forget_me
before returning false doesn't make a difference.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป