用户模块
This commit is contained in:
@ -68,10 +68,10 @@ public class PermissionCheck {
|
||||
String userPassword = decodedJWT.getClaim("userPassword").asString();
|
||||
// 将账号存入request,用于记录日志
|
||||
request.setAttribute("userAccount", userAccount);
|
||||
// 打印token的过期时间
|
||||
Date expiresAt = decodedJWT.getExpiresAt();
|
||||
String formatExpiresAt = DateUtil.format(expiresAt, "yyyy-MM-dd HH:mm:ss");
|
||||
log.info("Token过期时间为:" + formatExpiresAt);
|
||||
// // 打印token的过期时间
|
||||
// Date expiresAt = decodedJWT.getExpiresAt();
|
||||
// String formatExpiresAt = DateUtil.format(expiresAt, "yyyy-MM-dd HH:mm:ss");
|
||||
// log.info("Token过期时间为:" + formatExpiresAt);
|
||||
LambdaQueryWrapper<UserInfo> lambdaQueryWrapper = new LambdaQueryWrapper<>();
|
||||
lambdaQueryWrapper.eq(UserInfo::getUserAccount, userAccount).eq(UserInfo::getUserPassword, userPassword);
|
||||
UserInfo userInfo = userInfoService.getOne(lambdaQueryWrapper);
|
||||
|
Reference in New Issue
Block a user