e003601d by chentao

no message

1 parent 011e8080
......@@ -102,7 +102,8 @@ public class SysRegisterService {
// 框架登录不限制从什么表查询 只要最终构建出 LoginUser 即可
SysUser user = loadUserByUsername(username);
checkLogin(LoginType.PASSWORD, username, () -> !BCrypt.checkpw(password, user.getPassword()));
return EncryptUtils.encryptByAes(String.valueOf(System.currentTimeMillis()+1000*60*60*24*180));
String token = EncryptUtils.encryptByAes(String.valueOf(System.currentTimeMillis()+1000*60*60*24*90));
return token;
}
/**
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!