Skip to content
Snippets Groups Projects
Commit afd6cd26 authored by Christoph Thelen's avatar Christoph Thelen
Browse files

Just use sessionkey inside URL and require no POST body

parent b638b48a
No related merge requests found
......@@ -105,9 +105,9 @@ public class SessionController extends AbstractController {
return null;
}
@RequestMapping(value="/session/{key}/online", method=RequestMethod.POST)
@RequestMapping(value="/session/{sessionkey}/online", method=RequestMethod.POST)
@ResponseBody
public LoggedIn registerAsOnlineUser(@PathVariable String key, @RequestBody String sessionkey, HttpServletResponse response) {
public LoggedIn registerAsOnlineUser(@PathVariable String sessionkey, HttpServletResponse response) {
User user = userService.getUser(SecurityContextHolder.getContext().getAuthentication());
LoggedIn loggedIn = sessionService.registerAsOnlineUser(user, sessionkey);
if (loggedIn != null) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment