@@ -31,12 +31,12 @@ public class UserPageController {
3131 * Login Page.
3232 *
3333 * @param userDetails the user details
34- * @param session the session
35- * @param model the model
34+ * @param session the session
35+ * @param model the model
3636 *
3737 * @return the string
3838 */
39- @ GetMapping ("/user/login.html" )
39+ @ GetMapping ("${user.security.loginPageURI: /user/login.html} " )
4040 public String login (@ AuthenticationPrincipal DSUserDetails userDetails , HttpSession session , ModelMap model ) {
4141 log .debug ("UserPageController.login:" + "userDetails: {}" , userDetails );
4242 if (session != null && session .getAttribute ("error.message" ) != null ) {
@@ -52,11 +52,11 @@ public String login(@AuthenticationPrincipal DSUserDetails userDetails, HttpSess
5252 * Register Page.
5353 *
5454 * @param userDetails the user details
55- * @param session the session
56- * @param model the model
55+ * @param session the session
56+ * @param model the model
5757 * @return the string
5858 */
59- @ GetMapping ("/user/register.html" )
59+ @ GetMapping ("${user.security.registrationURI: /user/register.html} " )
6060 public String register (@ AuthenticationPrincipal DSUserDetails userDetails , HttpSession session , ModelMap model ) {
6161 log .debug ("UserPageController.register:" + "userDetails: {}" , userDetails );
6262 if (session != null && session .getAttribute ("error.message" ) != null ) {
@@ -73,7 +73,7 @@ public String register(@AuthenticationPrincipal DSUserDetails userDetails, HttpS
7373 *
7474 * @return the string
7575 */
76- @ GetMapping ("/user/registration-pending-verification.html" )
76+ @ GetMapping ("${user.security.registrationPendingURI: /user/registration-pending-verification.html} " )
7777 public String registrationPending () {
7878 return "user/registration-pending-verification" ;
7979 }
@@ -82,13 +82,14 @@ public String registrationPending() {
8282 * Registration complete.
8383 *
8484 * @param userDetails the user details
85- * @param session the session
86- * @param model the model
85+ * @param session the session
86+ * @param model the model
8787 *
8888 * @return the string
8989 */
90- @ GetMapping ("/user/registration-complete.html" )
91- public String registrationComplete (@ AuthenticationPrincipal DSUserDetails userDetails , HttpSession session , ModelMap model ) {
90+ @ GetMapping ("${user.security.registrationSuccessURI:/user/registration-complete.html}" )
91+ public String registrationComplete (@ AuthenticationPrincipal DSUserDetails userDetails , HttpSession session ,
92+ ModelMap model ) {
9293 log .debug ("UserPageController.registrationComplete:" + "userDetails: {}" , userDetails );
9394 return "user/registration-complete" ;
9495 }
@@ -98,7 +99,7 @@ public String registrationComplete(@AuthenticationPrincipal DSUserDetails userDe
9899 *
99100 * @return the string
100101 */
101- @ GetMapping ("/user/request-new-verification-email.html" )
102+ @ GetMapping ("${user.security.registrationNewVerificationURI: /user/request-new-verification-email.html} " )
102103 public String requestNewVerificationEMail () {
103104 return "user/request-new-verification-email" ;
104105 }
@@ -108,7 +109,7 @@ public String requestNewVerificationEMail() {
108109 *
109110 * @return the string
110111 */
111- @ GetMapping ("/user/forgot-password.html" )
112+ @ GetMapping ("${user.security.forgotPasswordURI: /user/forgot-password.html} " )
112113 public String forgotPassword () {
113114 return "user/forgot-password" ;
114115 }
@@ -118,7 +119,7 @@ public String forgotPassword() {
118119 *
119120 * @return the string
120121 */
121- @ GetMapping ("/user/forgot-password-pending-verification.html" )
122+ @ GetMapping ("${user.security.forgotPasswordPendingURI: /user/forgot-password-pending-verification.html} " )
122123 public String forgotPasswordPendingVerification () {
123124 return "user/forgot-password-pending-verification" ;
124125 }
@@ -128,20 +129,20 @@ public String forgotPasswordPendingVerification() {
128129 *
129130 * @return the string
130131 */
131- @ GetMapping ("/user/forgot-password-change.html" )
132+ @ GetMapping ("${user.security.forgotPasswordChangeURI: /user/forgot-password-change.html} " )
132133 public String forgotPasswordChange () {
133134 return "user/forgot-password-change" ;
134135 }
135136
136-
137137 /**
138138 * @param userDetails the user details
139- * @param request the request
140- * @param model the model
139+ * @param request the request
140+ * @param model the model
141141 * @return String
142142 */
143- @ GetMapping ("/user/update-user.html" )
144- public String updateUser (@ AuthenticationPrincipal DSUserDetails userDetails , final HttpServletRequest request , final ModelMap model ) {
143+ @ GetMapping ("${user.security.updateUserURI:/user/update-user.html}" )
144+ public String updateUser (@ AuthenticationPrincipal DSUserDetails userDetails , final HttpServletRequest request ,
145+ final ModelMap model ) {
145146 if (userDetails != null ) {
146147 User user = userDetails .getUser ();
147148 UserDto userDto = new UserDto ();
@@ -157,7 +158,7 @@ public String updateUser(@AuthenticationPrincipal DSUserDetails userDetails, fin
157158 *
158159 * @return the string
159160 */
160- @ GetMapping ("/user/update-password.html" )
161+ @ GetMapping ("${user.security.updatePasswordURI: /user/update-password.html} " )
161162 public String updatePassword () {
162163 return "user/update-password" ;
163164 }
@@ -167,7 +168,7 @@ public String updatePassword() {
167168 *
168169 * @return the string
169170 */
170- @ GetMapping ("/user/delete-account.html" )
171+ @ GetMapping ("${user.security.deleteAccountURI: /user/delete-account.html} " )
171172 public String deleteAccount () {
172173 return "user/delete-account" ;
173174 }
0 commit comments