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

取消三个月修改密码验证

parent 50856aeb
...@@ -192,6 +192,11 @@ public class AuthTokenServiceImpl implements IAuthTokenService { ...@@ -192,6 +192,11 @@ public class AuthTokenServiceImpl implements IAuthTokenService {
return menuUrl; return menuUrl;
} }
@Override
public String getAreaCodes(){
return "";
}
}; };
} }
......
...@@ -218,4 +218,9 @@ public class LoginController extends BaseCRUDJsonBodyMappingController<UserServi ...@@ -218,4 +218,9 @@ public class LoginController extends BaseCRUDJsonBodyMappingController<UserServi
return ret.toJSONString(); 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 { ...@@ -354,6 +354,11 @@ public class UserEntity extends UserEntityExt implements IUser {
return null; return null;
} }
@Override
public String getAreaCodes() {
return null;
}
/** /**
* 设置 站点id * 设置 站点id
* @param siteId * @param siteId
......
...@@ -205,12 +205,12 @@ public class UserServiceImpl extends AbstractCRUDServiceImpl<UserDao, UserEntity ...@@ -205,12 +205,12 @@ public class UserServiceImpl extends AbstractCRUDServiceImpl<UserDao, UserEntity
this.dao.update(update); this.dao.update(update);
throw new AppException("登录密码错误!"); throw new AppException("登录密码错误!");
}else { }else {
if(sysUser.getLastUpdatePwdTime()!=null) { // if(sysUser.getLastUpdatePwdTime()!=null) {
long day = DateUtils.getBetween(sysUser.getLastUpdatePwdTime(), new Date(), 2); // long day = DateUtils.getBetween(sysUser.getLastUpdatePwdTime(), new Date(), 2);
if (day >= 90) { // if (day >= 90) {
throw new AppException("密码已超过三个月没有更改,请修改以后再登录"); // throw new AppException("密码已超过三个月没有更改,请修改以后再登录");
} // }
} // }
} }
} catch (Exception e) { } catch (Exception e) {
throw new AppException("密码验认出错!", e); throw new AppException("密码验认出错!", e);
......
...@@ -495,6 +495,11 @@ public class CustomerEntity extends CustomerVo implements IUser { ...@@ -495,6 +495,11 @@ public class CustomerEntity extends CustomerVo implements IUser {
return null; return null;
} }
@Override
public String getAreaCodes() {
return null;
}
@Override @Override
public Long getCustomerJoinId() { public Long getCustomerJoinId() {
return null; return null;
......
...@@ -162,12 +162,12 @@ public class CustomerServiceImpl extends AbstractCRUDServiceImpl<CustomerDao, Cu ...@@ -162,12 +162,12 @@ public class CustomerServiceImpl extends AbstractCRUDServiceImpl<CustomerDao, Cu
this.dao.update(update); this.dao.update(update);
throw new AppException("登录密码错误!"); throw new AppException("登录密码错误!");
}else { }else {
if(user.getLastUpdatePwdTime()!=null) { // if(user.getLastUpdatePwdTime()!=null) {
long day = DateUtils.getBetween(user.getLastUpdatePwdTime(), new Date(), 2); // long day = DateUtils.getBetween(user.getLastUpdatePwdTime(), new Date(), 2);
if (day >= 90) { // if (day >= 90) {
throw new AppException("密码已超过三个月没有更改,请修改以后再登录"); // throw new AppException("密码已超过三个月没有更改,请修改以后再登录");
} // }
} // }
} }
} catch (Exception e) { } catch (Exception e) {
throw new AppException("密码验认出错!", e); throw new AppException("密码验认出错!", e);
...@@ -425,8 +425,8 @@ public class CustomerServiceImpl extends AbstractCRUDServiceImpl<CustomerDao, Cu ...@@ -425,8 +425,8 @@ public class CustomerServiceImpl extends AbstractCRUDServiceImpl<CustomerDao, Cu
json[1] = "1"; json[1] = "1";
System.out.println(JSONObject.toJSON(json).toString()); System.out.println(JSONObject.toJSON(json).toString());
params.put("json",JSONObject.toJSON(jj).toString()); params.put("json",JSONObject.toJSON(jj).toString());
// String resp = HttpUtil.doPost("http://sms.wx3.com.cn/api/index/index",params); String resp = HttpUtil.doPost("http://sms.wx3.com.cn/api/index/index",params);
// System.out.println(resp); System.out.println(resp);
}catch (Exception e){ }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