Skip to content

Commit 88867d3

Browse files
committed
Fixed #129, Fixed #126, working on 168
1 parent 01187d9 commit 88867d3

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/main/java/org/woehlke/simpleworklist/user/register/UserRegistrationController.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
@Slf4j
1818
@Controller
19-
@RequestMapping(path = "/user/register")
19+
@RequestMapping(path = "/user")
2020
public class UserRegistrationController {
2121

2222
private final UserAccountService userAccountService;
@@ -35,7 +35,7 @@ public UserRegistrationController(UserAccountService userAccountService, UserReg
3535
* @param model
3636
* @return Formular for entering Email-Address for Registration
3737
*/
38-
@RequestMapping(path = "/", method = RequestMethod.GET)
38+
@RequestMapping(path = "/register", method = RequestMethod.GET)
3939
public final String registerNewUserRequestForm(Model model) {
4040
UserRegistrationForm userRegistrationForm = new UserRegistrationForm();
4141
model.addAttribute("userRegistrationForm", userRegistrationForm);
@@ -50,7 +50,7 @@ public final String registerNewUserRequestForm(Model model) {
5050
* @param model
5151
* @return info page at success or return to form with error messages.
5252
*/
53-
@RequestMapping(path = "/", method = RequestMethod.POST)
53+
@RequestMapping(path = "/register", method = RequestMethod.POST)
5454
public final String registerNewUserRequestStoreAndSendEmailForVerification(
5555
@Valid UserRegistrationForm userRegistrationForm,
5656
BindingResult result,
@@ -90,7 +90,7 @@ public final String registerNewUserRequestStoreAndSendEmailForVerification(
9090
* @param model
9191
* @return Formular for Entering Account Task or Error Messages.
9292
*/
93-
@RequestMapping(path = "/confirm/{confirmId}", method = RequestMethod.GET)
93+
@RequestMapping(path = "/register/confirm/{confirmId}", method = RequestMethod.GET)
9494
public final String registerNewUserCheckResponseAndRegistrationForm(
9595
@PathVariable String confirmId,
9696
Model model
@@ -117,7 +117,7 @@ public final String registerNewUserCheckResponseAndRegistrationForm(
117117
* @param model
118118
* @return login page at success or page with error messages.
119119
*/
120-
@RequestMapping(path = "/confirm/{confirmId}", method = RequestMethod.POST)
120+
@RequestMapping(path = "/register/confirm/{confirmId}", method = RequestMethod.POST)
121121
public final String registerNewUserCheckResponseAndRegistrationStore(
122122
@PathVariable String confirmId,
123123
@Valid UserAccountForm userAccountForm,

src/main/resources/templates/user/login/loginForm.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ <h2><span th:utext="#{user.loginForm.h2}">Your Todo-List for Getting Things Done
1919
<div class="card">
2020
<div class="card-header">
2121
<span th:utext="#{user.loginForm.login}">Please login or</span>
22-
<a th:href="@{/register}">
22+
<a th:href="@{/user/register}">
2323
<span th:utext="#{user.loginForm.register}">register as new user</span>
2424
</a>.
2525
</div>
@@ -42,7 +42,7 @@ <h2><span th:utext="#{user.loginForm.h2}">Your Todo-List for Getting Things Done
4242
<i class="fas fa-sign-in-alt"></i>
4343
<span th:utext="#{user.loginForm.loginButton}"></span>
4444
</button>
45-
<a th:href="@{/resetPassword}" class="btn btn-secondary" role="button">
45+
<a th:href="@{/user/resetPassword}" class="btn btn-secondary" role="button">
4646
<i class="fas fa-question-circle"></i>
4747
<span th:utext="#{user.loginForm.passwordReset}">Password forgotten?</span>
4848
</a>

0 commit comments

Comments
 (0)