
failed_login_count does not work with generalize_credentials_error_messages
Reported by Pieter | May 15th, 2009 @ 06:45 AM
When generalize_credentials_error_messages = true, then failed_login_count won't be updated. I think it's because errors.on(password_field) will return nil instead of the wrong password error.
def increase_failed_login_count
if errors.on(password_field) && attempted_record.respond_to?(:failed_login_count)
attempted_record.failed_login_count ||= 0
attempted_record.failed_login_count += 1
end
end
Is this a bug or expected behaviour?
Best Regards,
Pieter
Comments and changes to this ticket
-
Ben Johnson May 28th, 2009 @ 03:53 AM
- State changed from new to open
No, its a bug. I'll try to use something besides errors on the password field. Thanks!
-
Ben Johnson May 28th, 2009 @ 04:25 AM
- State changed from open to resolved
This is fixed. Thanks.
-
-
-
Brock Rose July 17th, 2019 @ 07:24 AM
Login count are just failed to have the all access of this formation among all o these part that was able to read on this. I need to have some friction that was on topresume complaints this was the company that work at this city since long having the all project on this.
-
rosstaylor505 January 9th, 2020 @ 07:38 AM
I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well. In fact your creative writing abilities has inspired me to start my own BlogEngine blog now. Really the blogging is spreading its wings rapidly. Your write up is a fine example of it.
What are bombas socks? -
jackiedavis351 January 14th, 2020 @ 07:33 AM
Hey, great blog, but I don’t understand how to add your site in my reader. Can you Help me please?
What are bombas socks? -
jackiedavis351 January 17th, 2020 @ 05:56 AM
wow, great, I was wondering how to cure acne naturally. and found your site by google, learned a lot, now i’m a bit clear. I’ve bookmark your site and also add rss. keep us updated.
Why is a sock called a sock? -
HoustonHacker February 5th, 2020 @ 10:57 AM
This is certainly hence attractive plus artistic. I like a colorations plus whichever company may get them while in the mailbox might be smiling.
best CBD oil for anxiety
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 ยป
Object based authentication solution that handles all of the non sense for you. It's as easy as ActiveRecord is with a database.