|
@@ -370,14 +370,13 @@ public class adminManagerAction extends ActionSupport implements ServletRequestA
|
|
|
ResUtil.writeJson(ServletActionContext.getResponse(), resultJson.toString());
|
|
ResUtil.writeJson(ServletActionContext.getResponse(), resultJson.toString());
|
|
|
return null;
|
|
return null;
|
|
|
}
|
|
}
|
|
|
- if (admin.getAdminName()==null || admin.getCorpnName()==null || admin.getCorpnPhone()==null
|
|
|
|
|
- || admin.getLevel()==null || admin.getPassword()==null){
|
|
|
|
|
- resultJson.put("message", "各参数不能为空");
|
|
|
|
|
|
|
+ if (admin.getId()==null){
|
|
|
|
|
+ resultJson.put("message", "用户主键不能为空");
|
|
|
resultJson.put("code", 500);
|
|
resultJson.put("code", 500);
|
|
|
ResUtil.writeJson(ServletActionContext.getResponse(), resultJson.toString());
|
|
ResUtil.writeJson(ServletActionContext.getResponse(), resultJson.toString());
|
|
|
return null;
|
|
return null;
|
|
|
}
|
|
}
|
|
|
- if (!PwdDefind.vertify(admin.getPassword())){
|
|
|
|
|
|
|
+ if (admin.getPassword()!=null && !"".equals(admin.getPassword()) && !PwdDefind.vertify(admin.getPassword())){
|
|
|
resultJson.put("message", "密码至少包含:大小写英文字母、数字、特殊符号,密码长度大于8位,小于20位");
|
|
resultJson.put("message", "密码至少包含:大小写英文字母、数字、特殊符号,密码长度大于8位,小于20位");
|
|
|
resultJson.put("code", 500);
|
|
resultJson.put("code", 500);
|
|
|
ResUtil.writeJson(ServletActionContext.getResponse(), resultJson.toString());
|
|
ResUtil.writeJson(ServletActionContext.getResponse(), resultJson.toString());
|
|
@@ -453,7 +452,7 @@ public class adminManagerAction extends ActionSupport implements ServletRequestA
|
|
|
}
|
|
}
|
|
|
AdminManager admin = adminManagerService.getById(id);
|
|
AdminManager admin = adminManagerService.getById(id);
|
|
|
if (admin != null && !"".equals(admin)) {
|
|
if (admin != null && !"".equals(admin)) {
|
|
|
- admin.setPassword("Jams123456");
|
|
|
|
|
|
|
+ admin.setPassword("Jams_123456");
|
|
|
int m = adminManagerService.updateAdmin(admin);
|
|
int m = adminManagerService.updateAdmin(admin);
|
|
|
if(m > 0){
|
|
if(m > 0){
|
|
|
resultJson.put("message", "重置成功");
|
|
resultJson.put("message", "重置成功");
|