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