diff --git a/.gitignore b/.gitignore index a2a3040..a3e3bd2 100644 --- a/.gitignore +++ b/.gitignore @@ -29,3 +29,6 @@ build/ ### VS Code ### .vscode/ + +build.sh +trusted.key diff --git a/src/main/java/app/coronawarn/verification/portal/controller/VerificationPortalController.java b/src/main/java/app/coronawarn/verification/portal/controller/VerificationPortalController.java index d22dc31..ba0bc3d 100644 --- a/src/main/java/app/coronawarn/verification/portal/controller/VerificationPortalController.java +++ b/src/main/java/app/coronawarn/verification/portal/controller/VerificationPortalController.java @@ -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"); @@ -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; } }