hhuijser/liferay-portal — pull request #563 by jjangsam (2012-04-03 22:59:19+00:00)
Title: LPS-26484 Maximum failures on account lockout doesn't work properly

failedLoginAttempts is counted from 0, 1, 2, 3... and maxFailures is counted from 1,2,3,4..

I'm adding (failedLoginAttempts + 1) to for-loop because it make sense that failedLoginAttempts to be counted from 0 but in comparision with maxFailures we should add +1.

It's also not a good idea to change default value to defaultUser.setFailedLoginAttempts(1);.