Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
fix: cross site forgery (#76)
Browse files Browse the repository at this point in the history
* fix: cross site forgery

* fix: cross site forgery route
  • Loading branch information
jhagestedt authored Jun 11, 2020
1 parent 2c160c3 commit 054e2f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,6 @@ build/

### VS Code ###
.vscode/

build.sh
trusted.key
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public String start(HttpServletRequest request, Model model) {
* @param model the thymeleaf model
* @return the name of the Thymeleaf template to be used for the HTML page
*/
@RequestMapping(value = ROUTE_TELETAN, method = {RequestMethod.GET, RequestMethod.POST})
@PostMapping(value = ROUTE_TELETAN)
public String teletan(HttpServletRequest request, Model model) {

TeleTan teleTan = new TeleTan("123456789");
Expand Down Expand Up @@ -181,6 +181,6 @@ public String logout(HttpServletRequest request) {
} catch (ServletException e) {
log.error("Logout failed", e);
}
return "redirect:" + TEMPLATE_TELETAN;
return "redirect:" + TEMPLATE_START;
}
}

0 comments on commit 054e2f5

Please sign in to comment.