修复个人中心无法修改密码问题
This commit is contained in:
@@ -33,9 +33,8 @@ public class UpdateController {
|
|||||||
if (tbUser.getColuserid()==null){
|
if (tbUser.getColuserid()==null){
|
||||||
throw new UserException(ResultEnum.ID_NULLPOINT);
|
throw new UserException(ResultEnum.ID_NULLPOINT);
|
||||||
}
|
}
|
||||||
if (tbUser.getColpassword()!=null&&tbUser.getColpassword()!=""){
|
if (tbUser.getColpassword()!=null){
|
||||||
//加密用户密码
|
userService.updateColpasswordByColname(tbUser.getColpassword(),tbUser.getColname());
|
||||||
tbUser.setColpassword(new BigInteger(CodingUtil.encryptSHA(tbUser.getColpassword().getBytes())).toString(32));
|
|
||||||
}
|
}
|
||||||
if (userService.doRegisterService(tbUser)){
|
if (userService.doRegisterService(tbUser)){
|
||||||
log.info(tbUser.getColname()+" 信息更新成功");
|
log.info(tbUser.getColname()+" 信息更新成功");
|
||||||
@@ -43,6 +42,7 @@ public class UpdateController {
|
|||||||
+ serverProperties.getPortNum() + request.getContextPath() + "/home/user";
|
+ serverProperties.getPortNum() + request.getContextPath() + "/home/user";
|
||||||
// return "login";
|
// return "login";
|
||||||
}
|
}
|
||||||
|
log.error(tbUser.getColname()+" 信息更新失败");
|
||||||
throw new UserException(ResultEnum.UNKOWN_ERROR);
|
throw new UserException(ResultEnum.UNKOWN_ERROR);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user