Revize 17ad8bc7
Přidáno uživatelem Jan Čarnogurský před asi 4 roky(ů)
src/main/java/vldc/aswi/web/controller/LoginController.java | ||
---|---|---|
2 | 2 |
|
3 | 3 |
import org.springframework.stereotype.Controller; |
4 | 4 |
import org.springframework.web.bind.annotation.GetMapping; |
5 |
import org.springframework.web.bind.annotation.PostMapping; |
|
5 | 6 |
import org.springframework.web.servlet.ModelAndView; |
6 | 7 |
|
7 | 8 |
@Controller |
... | ... | |
18 | 19 |
return modelAndView; |
19 | 20 |
} |
20 | 21 |
|
22 |
/** |
|
23 |
* Logout. |
|
24 |
* @return the string |
|
25 |
*/ |
|
26 |
@PostMapping(value = "/logout") |
|
27 |
public String logout() |
|
28 |
{ |
|
29 |
return "redirect:/login"; |
|
30 |
} |
|
31 |
|
|
21 | 32 |
} |
Také k dispozici: Unified diff
re #8015 added user logout