Customizing OpenMRS login page

@jaycee Below is the UgandaEMR approach for customizing the login page. We used this approach since the page cannot be overwritten and the controller can only be mapped once. How I so wish there was a simpler way

  1. Add a PageRequestMapper to catch the call from the Reference Application Login to our login page https://github.com/METS-Programme/openmrs-module-aijar/blob/master/omod/src/main/java/org/openmrs/module/aijar/page/UgandaEMRLoginPageRequestMapper.java

  2. Copy the contents of the Reference Application Login Controller https://github.com/METS-Programme/openmrs-module-aijar/blob/master/omod/src/main/java/org/openmrs/module/aijar/page/controller/AijarLoginPageController.java

  3. Add the custom Login page https://github.com/METS-Programme/openmrs-module-aijar/blob/master/omod/src/main/webapp/pages/aijarLogin.gsp

2 Likes