1

Merge pull request #69 from hhu-propra2/fixingLogoutButton

Fixed the Logout Button
This commit is contained in:
Max Oerter
2020-03-13 16:43:53 +01:00
committed by GitHub

View File

@ -3,6 +3,8 @@ package mops.gruppen2.controller;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import javax.servlet.http.HttpServletRequest;
@Controller @Controller
public class MopsController { public class MopsController {
@ -10,4 +12,10 @@ public class MopsController {
public String redirect(){ public String redirect(){
return "redirect:/gruppen2/"; return "redirect:/gruppen2/";
} }
@GetMapping("/logout")
public String logout(HttpServletRequest request) throws Exception {
request.logout();
return "redirect:/gruppen2/";
}
} }