#1025 new
Tim Griffin

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

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Pages