Commit 676fa5a3 authored by 廖旭伟's avatar 廖旭伟

取消三个月修改密码验证

parent 50856aeb
......@@ -192,6 +192,11 @@ public class AuthTokenServiceImpl implements IAuthTokenService {
return menuUrl;
}
@Override
public String getAreaCodes(){
return "";
}
};
}
......
......@@ -218,4 +218,9 @@ public class LoginController extends BaseCRUDJsonBodyMappingController<UserServi
return ret.toJSONString();
}
public static void main(String[] args) {
String ss = "b4AEywr1dNpqe6s1XJ4pLg==";
String sy = LoginAESUtil.decrypt(ss,AES_KEY,AES_IV,LoginAESUtil.AES_CBC);
System.out.println(sy);
}
}
......@@ -354,6 +354,11 @@ public class UserEntity extends UserEntityExt implements IUser {
return null;
}
@Override
public String getAreaCodes() {
return null;
}
/**
* 设置 站点id
* @param siteId
......
......@@ -205,12 +205,12 @@ public class UserServiceImpl extends AbstractCRUDServiceImpl<UserDao, UserEntity
this.dao.update(update);
throw new AppException("登录密码错误!");
}else {
if(sysUser.getLastUpdatePwdTime()!=null) {
long day = DateUtils.getBetween(sysUser.getLastUpdatePwdTime(), new Date(), 2);
if (day >= 90) {
throw new AppException("密码已超过三个月没有更改,请修改以后再登录");
}
}
// if(sysUser.getLastUpdatePwdTime()!=null) {
// long day = DateUtils.getBetween(sysUser.getLastUpdatePwdTime(), new Date(), 2);
// if (day >= 90) {
// throw new AppException("密码已超过三个月没有更改,请修改以后再登录");
// }
// }
}
} catch (Exception e) {
throw new AppException("密码验认出错!", e);
......
......@@ -495,6 +495,11 @@ public class CustomerEntity extends CustomerVo implements IUser {
return null;
}
@Override
public String getAreaCodes() {
return null;
}
@Override
public Long getCustomerJoinId() {
return null;
......
......@@ -162,12 +162,12 @@ public class CustomerServiceImpl extends AbstractCRUDServiceImpl<CustomerDao, Cu
this.dao.update(update);
throw new AppException("登录密码错误!");
}else {
if(user.getLastUpdatePwdTime()!=null) {
long day = DateUtils.getBetween(user.getLastUpdatePwdTime(), new Date(), 2);
if (day >= 90) {
throw new AppException("密码已超过三个月没有更改,请修改以后再登录");
}
}
// if(user.getLastUpdatePwdTime()!=null) {
// long day = DateUtils.getBetween(user.getLastUpdatePwdTime(), new Date(), 2);
// if (day >= 90) {
// throw new AppException("密码已超过三个月没有更改,请修改以后再登录");
// }
// }
}
} catch (Exception e) {
throw new AppException("密码验认出错!", e);
......@@ -425,8 +425,8 @@ public class CustomerServiceImpl extends AbstractCRUDServiceImpl<CustomerDao, Cu
json[1] = "1";
System.out.println(JSONObject.toJSON(json).toString());
params.put("json",JSONObject.toJSON(jj).toString());
// String resp = HttpUtil.doPost("http://sms.wx3.com.cn/api/index/index",params);
// System.out.println(resp);
String resp = HttpUtil.doPost("http://sms.wx3.com.cn/api/index/index",params);
System.out.println(resp);
}catch (Exception e){
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment