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

Merge remote-tracking branch 'origin/master'

parents d1375e9e 908c2e70
...@@ -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);
......
...@@ -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