dev:app端忘记密码
parent
ac54d25ab4
commit
f172b8544d
|
|
@ -114,8 +114,11 @@ public class UserUpdateExe {
|
|||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(AppUserRegisterCmd cmd) {
|
||||
|
||||
|
||||
|
||||
UserE userE = new UserE();
|
||||
userE.checkPassword(cmd.getPassword(), cmd.getConfirmPassword());
|
||||
|
||||
// 获取redis验证码
|
||||
Object phoneCodeObj = zcloudRedisUtil.get(RedisConstant.PHONE_CODE_KEY + cmd.getPhone());
|
||||
if(phoneCodeObj == null || !phoneCodeObj.toString().equals(cmd.getPhoneCode())){
|
||||
|
|
@ -123,7 +126,6 @@ public class UserUpdateExe {
|
|||
}
|
||||
zcloudRedisUtil.del(RedisConstant.PHONE_CODE_KEY + cmd.getPhone());
|
||||
|
||||
|
||||
BeanUtils.copyProperties(cmd, userE);
|
||||
userE.encryptionPassword();
|
||||
userGateway.updatePassword(userE);
|
||||
|
|
|
|||
Loading…
Reference in New Issue