benedmunds/CodeIgniter-Ion-Auth — pull request #209 by michaelbrooks (2012-04-28 21:46:45+00:00)
Title: Added tracking of failed logins

Fairly significant addition. Based on some code from the Tank Auth library (https://github.com/ilkon/Tank-Auth).

Adds 3 new configuration variables, 4 functions to the model, and 1 table to the database.

This doesn't do any hard enforcing of the failed login limit, but only provides useful functions should a controller wish to enforce it. I did not integrate this into the supplied controller. Let me know if that would be useful. I did incorporate the additions into the docs, with simple examples provided.

Also, as in Tank Auth, old records are cleared from the login_attempts table when they are older than 24 hours (by default).