Cleanup for r38886 "(bug 12370) Add throttle on password attempts. Defaults to max...
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 8 Aug 2008 22:15:50 +0000 (22:15 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 8 Aug 2008 22:15:50 +0000 (22:15 +0000)
commitb2d8b03a453b9a05ab102546cd7c8452b5221b78
tree0f1771475cbf6f01333e0fc92a6736966b358758
parentd02a56c613bc382b975a11423bc4d6e4046c5193
Cleanup for r38886 "(bug 12370) Add throttle on password attempts. Defaults to max 5 attempts in 5 minutes."

Generated memcache key used the user name, which could contain spaces or be overlong, leading to failure to enforce the check.
Switched to making the key using md5 of the username instead of the raw name, so "I Am Rocking" will get throttled as well as "WikiSysop".

Note that it still will have no effect on a default install (with no general cache engine); for this sort of security-friendly thing it might be wise to use the DB-based cache to ensure it's functional.
includes/specials/SpecialUserlogin.php