Index: lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/UserController.java =================================================================== diff -u -r29a37489a63e5a95f42a5ef5fd8a7daeb65c53c5 -r002370657c7bc0bf87eef9c223e1778f74483413 --- lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/UserController.java (.../UserController.java) (revision 29a37489a63e5a95f42a5ef5fd8a7daeb65c53c5) +++ lams_admin/src/java/org/lamsfoundation/lams/admin/web/controller/UserController.java (.../UserController.java) (revision 002370657c7bc0bf87eef9c223e1778f74483413) @@ -64,12 +64,13 @@ import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; /** * @author Jun-Dir Liew */ @Controller -@RequestMapping("/user") +@RequestMapping(path = "/user", method = RequestMethod.POST) public class UserController { private static Logger log = Logger.getLogger(UserController.class); @@ -88,7 +89,7 @@ private static List locales; private static List authenticationMethods; - @RequestMapping(path = "/edit") + @RequestMapping(path = "/edit", method = RequestMethod.POST) public String edit(@ModelAttribute UserForm userForm, HttpServletRequest request) throws Exception { if (locales == null) { locales = userManagementService.findAll(SupportedLocale.class); @@ -281,7 +282,7 @@ } // determine whether to disable or delete user based on their lams data - @RequestMapping(path = "/remove") + @RequestMapping(path = "/remove", method = RequestMethod.POST) public String remove(HttpServletRequest request) throws Exception { if (!(request.isUserInRole(Role.SYSADMIN) || userManagementService.isUserGlobalGroupManager())) { request.setAttribute("errorName", "UserAction"); @@ -301,7 +302,7 @@ return "remove"; } - @RequestMapping(path = "/disable") + @RequestMapping(path = "/disable", method = RequestMethod.POST) public String disable(HttpServletRequest request) throws Exception { if (!(request.isUserInRole(Role.SYSADMIN) || userManagementService.isUserGlobalGroupManager())) { request.setAttribute("errorName", "UserController"); @@ -326,7 +327,7 @@ } } - @RequestMapping(path = "/delete") + @RequestMapping(path = "/delete", method = RequestMethod.POST) public String delete(HttpServletRequest request) throws Exception { if (!(request.isUserInRole(Role.SYSADMIN) || userManagementService.isUserGlobalGroupManager())) { request.setAttribute("errorName", "UserAction"); @@ -358,7 +359,7 @@ } // called from disabled users screen - @RequestMapping(path = "/enable") + @RequestMapping(path = "/enable", method = RequestMethod.POST) public String enable(HttpServletRequest request) throws Exception { if (!(request.isUserInRole(Role.SYSADMIN) || userManagementService.isUserGlobalGroupManager())) { request.setAttribute("errorName", "UserController"); @@ -376,4 +377,4 @@ return "forward:/disabledmanage.do"; } -} \ No newline at end of file +} Index: lams_admin/web/disabledusers.jsp =================================================================== diff -u -r37bb2ae017713b44cdfd6a55cfceca28c3efab02 -r002370657c7bc0bf87eef9c223e1778f74483413 --- lams_admin/web/disabledusers.jsp (.../disabledusers.jsp) (revision 37bb2ae017713b44cdfd6a55cfceca28c3efab02) +++ lams_admin/web/disabledusers.jsp (.../disabledusers.jsp) (revision 002370657c7bc0bf87eef9c223e1778f74483413) @@ -46,7 +46,7 @@ - " class="btn btn-default btn-sm"> + Index: lams_admin/web/remove.jsp =================================================================== diff -u -r37bb2ae017713b44cdfd6a55cfceca28c3efab02 -r002370657c7bc0bf87eef9c223e1778f74483413 --- lams_admin/web/remove.jsp (.../remove.jsp) (revision 37bb2ae017713b44cdfd6a55cfceca28c3efab02) +++ lams_admin/web/remove.jsp (.../remove.jsp) (revision 002370657c7bc0bf87eef9c223e1778f74483413) @@ -15,7 +15,6 @@ -
@@ -44,9 +43,9 @@
- + "/>"/> +   + @@ -69,17 +68,15 @@
- + +
-