@@ -56,8 +56,8 @@ public String register(@ModelAttribute UsernameAndPass requestModel, Model model
56
56
@ PostMapping ("/change-username" )
57
57
public RedirectView changeUsername (
58
58
Principal principal ,
59
- @ RequestParam String currentPassword ,
60
- @ RequestParam String newUsername ,
59
+ @ RequestParam ( name = "currentPassword" ) String currentPassword ,
60
+ @ RequestParam ( name = "newUsername" ) String newUsername ,
61
61
HttpServletRequest request ,
62
62
HttpServletResponse response ,
63
63
RedirectAttributes redirectAttributes ) {
@@ -95,8 +95,8 @@ public RedirectView changeUsername(
95
95
@ PostMapping ("/change-password-on-login" )
96
96
public RedirectView changePasswordOnLogin (
97
97
Principal principal ,
98
- @ RequestParam String currentPassword ,
99
- @ RequestParam String newPassword ,
98
+ @ RequestParam ( name = "currentPassword" ) String currentPassword ,
99
+ @ RequestParam ( name = "newPassword" ) String newPassword ,
100
100
HttpServletRequest request ,
101
101
HttpServletResponse response ,
102
102
RedirectAttributes redirectAttributes ) {
@@ -128,8 +128,8 @@ public RedirectView changePasswordOnLogin(
128
128
@ PostMapping ("/change-password" )
129
129
public RedirectView changePassword (
130
130
Principal principal ,
131
- @ RequestParam String currentPassword ,
132
- @ RequestParam String newPassword ,
131
+ @ RequestParam ( name = "currentPassword" ) String currentPassword ,
132
+ @ RequestParam ( name = "newPassword" ) String newPassword ,
133
133
HttpServletRequest request ,
134
134
HttpServletResponse response ,
135
135
RedirectAttributes redirectAttributes ) {
@@ -180,9 +180,9 @@ public String updateUserSettings(HttpServletRequest request, Principal principal
180
180
@ PreAuthorize ("hasRole('ROLE_ADMIN')" )
181
181
@ PostMapping ("/admin/saveUser" )
182
182
public RedirectView saveUser (
183
- @ RequestParam String username ,
184
- @ RequestParam String password ,
185
- @ RequestParam String role ,
183
+ @ RequestParam ( name = "username" ) String username ,
184
+ @ RequestParam ( name = "password" ) String password ,
185
+ @ RequestParam ( name = "role" ) String role ,
186
186
@ RequestParam (name = "forceChange" , required = false , defaultValue = "false" )
187
187
boolean forceChange ) {
188
188
@@ -207,7 +207,8 @@ public RedirectView saveUser(
207
207
208
208
@ PreAuthorize ("hasRole('ROLE_ADMIN')" )
209
209
@ PostMapping ("/admin/deleteUser/{username}" )
210
- public RedirectView deleteUser (@ PathVariable String username , Authentication authentication ) {
210
+ public RedirectView deleteUser (
211
+ @ PathVariable (name = "username" ) String username , Authentication authentication ) {
211
212
212
213
if (!userService .usernameExists (username )) {
213
214
return new RedirectView ("/addUsers?messageType=deleteUsernameExists" );
0 commit comments