Skip to content

Commit f4f774a

Browse files
committed
LUI-83 : modified the method to use global property
1 parent 8b32820 commit f4f774a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

omod/src/main/java/org/openmrs/web/servlet/LoginServlet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public class LoginServlet extends HttpServlet {
5252
public static final String GP_MAXIMUM_ALLOWED_LOGINS = "security.allowedFailedLoginsBeforeLockout";
5353

5454
protected static final Log log = LogFactory.getLog(LoginServlet.class);
55-
//AdministrationService administrationService = Context.getAdministrationService();
55+
5656

5757
/**
5858
* The mapping from user's IP address to the number of attempts at logging in from that IP

omod/src/test/java/org/openmrs/web/servlet/LoginServletTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public void shouldLockUserOutAfterFiveFailedLoginAttempts() throws Exception {
8484
// do the test now
8585
LoginServlet loginServlet = new LoginServlet();
8686

87-
for (int x = 1; x < 5; x++) {
87+
for (int x = 1; x < 4; x++) {
8888
MockHttpServletRequest request = new MockHttpServletRequest("POST", "/loginServlet");
8989
request.setContextPath("/somecontextpath");
9090
MockHttpServletResponse response = new MockHttpServletResponse();

0 commit comments

Comments
 (0)