Skip to content

Commit 8c1a9e5

Browse files
committed
displaying use ful info when user is locked out
1 parent 7ceea27 commit 8c1a9e5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

api/src/main/resources/messages.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ legacyui.manageuser.noProviderIdentifier=No Identifier Specified
1010
${project.parent.artifactId}.Location.purgeLocation=Permanently Delete Location
1111
${project.parent.artifactId}.Location.confirmDelete=Are you sure you want to delete this Location? It will be permanently removed from the system.
1212
${project.parent.artifactId}.Location.purgedSuccessfully=Location deleted successfully
13+
14+
legacyui.lockedOutMessage=You have attempted to log in too many times and have been Locked out. Please try again later in 5 minutes

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ protected void doPost(HttpServletRequest request, HttpServletResponse response)
186186
}
187187

188188
if (loginAttemptsByUser > maximumAlowedAttempts) {
189-
httpSession.setAttribute(WebConstants.OPENMRS_ERROR_ATTR, "auth.login.tooManyAttempts");
189+
httpSession.setAttribute(WebConstants.OPENMRS_ERROR_ATTR, "legacyui.lockedOutMessage");
190190
}
191191
}
192192

0 commit comments

Comments
 (0)