Commit d46f2bb8 by wang_jiaxing

增加初始密码校验

parent 873bb1fe
......@@ -98,7 +98,7 @@ public class TokenUtil {
authInfo.setRealname(user.getTrueName());
authInfo.setPhone(user.getTelephone());
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
authInfo.setIsCs(user.getPasswordGxsj() == null ? "1" : ChronoUnit.MONTHS.between(LocalDate.parse(sdf.format(user.getPasswordGxsj())), LocalDate.parse(sdf.format(new Date()))) < 3 ? "0" : "1");
// authInfo.setIsCs(user.getPasswordGxsj() == null ? "1" : ChronoUnit.MONTHS.between(LocalDate.parse(sdf.format(user.getPasswordGxsj())), LocalDate.parse(sdf.format(new Date()))) < 3 ? "0" : "1");
String csmm = DigestUtil.encrypt("AnXzxt#46");
authInfo.setIsCsmm(StringUtils.equals(csmm, user.getPassword()) ? "1" : "0");
try {
......
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