[Rails] Re: Authlogic: activating inactive account/user

2010-08-26 Thread IAmNan
Did you try resetting failed_login_count to 0? d. On Aug 26, 11:30 am, pepe p...@betterrpg.com wrote: Hello, I have searched high and low on how to activate an inactive account in Authlogic and I can't seem to figure it out. I am using consecutive_failed_logins_limit to control a brute

[Rails] Re: Authlogic: activating inactive account/user

2010-08-26 Thread pepe
Yep, among other things. What I have gathered so far (although I could be wrong) is that Authlogic validations happen for UserSession before anything else. I believe that authlogic then goes and grabs info from the session and does its thing (which I don't know yet what it is) and marks the user

[Rails] Re: Authlogic: activating inactive account/user

2010-08-26 Thread pepe
Yep, among other things. What I have gathered so far (although I could be wrong) is that Authlogic validations happen for UserSession before anything else. I believe that authlogic then goes and grabs info from the session and does its thing (which I don't know yet what it is) and marks the user

[Rails] Re: Authlogic: activating inactive account/user

2010-08-26 Thread IAmNan
That's how it's done in brute_force_protection.rb: def reset_failed_login_count attempted_record.failed_login_count = 0 end You could test your assumption by resetting the count and then clearing the browser cache or trying to log on from a different computer. If