Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
8ecadc4241
|
|
@ -47,6 +47,9 @@ public class UserController {
|
||||||
*/
|
*/
|
||||||
@PutMapping("/pwd")
|
@PutMapping("/pwd")
|
||||||
public CzgResult<Boolean> updatePwd(@RequestBody UserInfoPwdEditDTO userInfoPwdEditDTO) {
|
public CzgResult<Boolean> updatePwd(@RequestBody UserInfoPwdEditDTO userInfoPwdEditDTO) {
|
||||||
|
if (!userInfoPwdEditDTO.getPayPwd().equals(userInfoPwdEditDTO.getCheckPayPwd())) {
|
||||||
|
return CzgResult.failure("两次密码不一致");
|
||||||
|
}
|
||||||
return CzgResult.success(userInfoService.updatePwd(StpKit.USER.getLoginIdAsLong(), userInfoPwdEditDTO));
|
return CzgResult.success(userInfoService.updatePwd(StpKit.USER.getLoginIdAsLong(), userInfoPwdEditDTO));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,8 @@ public class UserInfoPwdEditDTO {
|
||||||
*/
|
*/
|
||||||
@NotEmpty(message = "支付密码不为空")
|
@NotEmpty(message = "支付密码不为空")
|
||||||
private String payPwd;
|
private String payPwd;
|
||||||
|
@NotEmpty(message = "二次确认支付密码不为空")
|
||||||
|
private String checkPayPwd;
|
||||||
/**
|
/**
|
||||||
* 验证码
|
* 验证码
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue