Commit cfd1532c authored by 赵啸非's avatar 赵啸非

Merge remote-tracking branch 'origin/master'

parents ef777c17 ee55ce83
...@@ -229,12 +229,12 @@ public class UserServiceImpl extends AbstractCRUDCacheServiceImpl<UserDao, UserE ...@@ -229,12 +229,12 @@ public class UserServiceImpl extends AbstractCRUDCacheServiceImpl<UserDao, UserE
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(99998, "密码已超过三个月没有更改,请修改以后再登录"); // throw new AppException(99998, "密码已超过三个月没有更改,请修改以后再登录");
} // }
} // }
} }
} 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