return authentication header, if the login attempt limit is disabled

This commit is contained in:
Sebastian Sdorra
2014-04-20 13:11:41 +02:00
parent 5505f683d7
commit 1388052ace
2 changed files with 18 additions and 4 deletions

View File

@@ -87,7 +87,8 @@ public class HgBasicAuthenticationFilter extends BasicAuthenticationFilter
HttpServletResponse response)
throws IOException
{
if (HgUtil.isHgClient(request))
if (HgUtil.isHgClient(request)
&& (configuration.isLoginAttemptLimitEnabled()))
{
response.sendError(HttpServletResponse.SC_UNAUTHORIZED);
}