Commit eba35c10 authored by 廖旭伟's avatar 廖旭伟

取消密码三个月的提示

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