Skip to content

Commit

Permalink
Back porting to 1.9.x: Forgot password form IP-based lockout locks
Browse files Browse the repository at this point in the history
everyone from using it - TRUNK-3878 author:chalakanth
  • Loading branch information
dkayiwa committed Sep 12, 2013
1 parent a66acae commit 97f38e2
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -77,7 +77,7 @@ protected ModelAndView onSubmit(HttpServletRequest request, HttpServletResponse

String username = request.getParameter("uname");

String ipAddress = request.getLocalAddr();
String ipAddress = request.getRemoteAddr();
Integer forgotPasswordAttempts = loginAttemptsByIP.get(ipAddress);
if (forgotPasswordAttempts == null)
forgotPasswordAttempts = 1;
Expand Down

0 comments on commit 97f38e2

Please sign in to comment.