Language: C / C++. The pull request has one bug. You get three tries to find the line, then a short debrief.
Bots try passwords on our users' accounts. The auth service now counts failed attempts per user name and locks the name after five failures; a successful sign-in resets the count. The counts live in memory, since the auth service runs as a single instance.
Codetrap needs JavaScript: the code review happens in your browser.