|
@@ -549,6 +549,7 @@ public class UserController {
|
|
if ( SecurityUtils.validatePassword ( oldPassword, userDTO.getPassword ( ) ) ) {
|
|
if ( SecurityUtils.validatePassword ( oldPassword, userDTO.getPassword ( ) ) ) {
|
|
User user = new User ( userDTO.getId ( ) );
|
|
User user = new User ( userDTO.getId ( ) );
|
|
user.setPassword ( SecurityUtils.encryptPassword ( newPassword ) );
|
|
user.setPassword ( SecurityUtils.encryptPassword ( newPassword ) );
|
|
|
|
+ user.setUpPassword("1");
|
|
userService.updateById ( user );
|
|
userService.updateById ( user );
|
|
UserUtils.deleteCache ( userDTO );
|
|
UserUtils.deleteCache ( userDTO );
|
|
return ResponseEntity.ok ( "修改密码成功!" );
|
|
return ResponseEntity.ok ( "修改密码成功!" );
|