#64 ✓resolved
net1957

reset_failed_login_count fail

Reported by net1957 | March 24th, 2009 @ 08:20 AM

Hello,

In my user controler i have :


  def resetlogin
    @user = User.find(params[:id])
    current_user_session.reset_failed_login_count
    redirect_to admin_user_path(@user)
  end

with v 2.0.2 i get :


private method `reset_failed_login_count' called for #<UserSession: {:unauthorized_record=>"<protected>"}>

worked with pre v2 version.

And thanks for your reactivity for ticket #63

Comments and changes to this ticket

  • Ben Johnson

    Ben Johnson March 24th, 2009 @ 10:19 AM

    • State changed from “new” to “resolved”

    Hi, that method probably should be private, as that is not a "session" activity. All that its doing is:

    user.failed_login_count = 0
    

    I put it in a method so I could call it in filters. You could replace that line with what I wrote above.

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 ยป

Object based authentication solution that handles all of the non sense for you. It's as easy as ActiveRecord is with a database.

People watching this ticket

Pages