stellar/stellar-wallet — pull request #40 by nullstyle (2014-10-24 21:01:10+00:00)
Title: Lockout on more actions

This PR adds ip lockout capabilities to any action that uses `walletID` or `recoveryID` as a means of identification. Given that the two are derived from username/password combo, we cannot allow actions that use them to allow unlimited failures. Doing so will allow an attacker to confirm whether or not they have guessed the correct password.

This PR introduces:
- a simple middleware to protect the actions: `rejectLockedOutIps`
- a simple helper to record failures in a uniform way `failAndRecordLockout`