views:

24

answers:

1

I'm using Authlogic as the login system. Everything is working correctly except that it never updates the failed_login_count field when I purposely type in the wrong password. I am using the email as the login item. In the database there is no 'login' column. Is there something that I need to change or add to make this feature work?

A: 

Is your User model valid? If it's not, the validation will fail and the column can't be saved.

htanata
Figure it out. In the User model the acts_as_authentic line had to be changed to this to force it to look at the email line. acts_as_authentic do |c| c.login_field = 'email' end
Attis