Skip to content

Commit

Permalink
displaying use ful info when user is locked out
Browse files Browse the repository at this point in the history
  • Loading branch information
mozzy11 committed Jan 3, 2019
1 parent 7ceea27 commit 8c1a9e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions api/src/main/resources/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ legacyui.manageuser.noProviderIdentifier=No Identifier Specified
${project.parent.artifactId}.Location.purgeLocation=Permanently Delete Location
${project.parent.artifactId}.Location.confirmDelete=Are you sure you want to delete this Location? It will be permanently removed from the system.
${project.parent.artifactId}.Location.purgedSuccessfully=Location deleted successfully
legacyui.lockedOutMessage=You have attempted to log in too many times and have been Locked out. Please try again later in 5 minutes
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ protected void doPost(HttpServletRequest request, HttpServletResponse response)
}

if (loginAttemptsByUser > maximumAlowedAttempts) {
httpSession.setAttribute(WebConstants.OPENMRS_ERROR_ATTR, "auth.login.tooManyAttempts");
httpSession.setAttribute(WebConstants.OPENMRS_ERROR_ATTR, "legacyui.lockedOutMessage");
}
}

Expand Down

0 comments on commit 8c1a9e5

Please sign in to comment.