go2null / redmine_account_policy

Password Expiry and other enhancements
GNU General Public License v3.0
4 stars 13 forks source link

User patch max login failswith notifications #2

Closed farkwun closed 8 years ago

farkwun commented 8 years ago

Implemented the following features -

I extended the mailer and added (as well as wrapped) methods in the User and AccountController classes.

Blank passwords on the login page weren't triggering the check_password method, which is where I have my increment logic. This is because the try_to_login method returns immediately if the password is blank, in order to subvert this, if a blank password is passed in, I call the try_to_login method with a random base64 string to simulate a 'wrong' password.

I also changed the settings view, added mailer templates, and added labels in en.yml

All testing done in Redmine 3.1.2.stable

go2null commented 8 years ago