|
|
|
@ -58,7 +58,7 @@ public class ManagerController { |
|
|
|
|
return new Res<>(Result.FAIL,"确认密码不能为空",null); |
|
|
|
|
}else if(!manager.getPassword().equals(manager.getConfirmPassword())){ |
|
|
|
|
return new Res<>(Result.FAIL,"两次密码输入不一致",null); |
|
|
|
|
}else if(StringUtils.isEmpty(manager.getMobie())){ |
|
|
|
|
}else if(StringUtils.isEmpty(manager.getMobile())){ |
|
|
|
|
return new Res<>(Result.FAIL,"手机号不能为空",null); |
|
|
|
|
}else if(StringUtils.isEmpty(manager.getEmail())){ |
|
|
|
|
return new Res<>(Result.FAIL,"邮箱不能为空",null); |
|
|
|
@ -68,7 +68,7 @@ public class ManagerController { |
|
|
|
|
Manager m=new Manager(); |
|
|
|
|
m.setManagerName(manager.getManagerName()); |
|
|
|
|
m.setPassword(DigestUtils.md5DigestAsHex(manager.getPassword().getBytes())); |
|
|
|
|
m.setMobie(manager.getMobie()); |
|
|
|
|
m.setMobile(manager.getMobile()); |
|
|
|
|
m.setEmail(manager.getEmail()); |
|
|
|
|
managerDao.save(m); |
|
|
|
|
return new Res<>(Result.OK,"注册成功",null); |
|
|
|
|