Commit 12d2e6f9 authored by 廖旭伟's avatar 廖旭伟

取消密码三个月更新的提示

parent e5103a05
...@@ -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);
......
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