新增单点登录功能

master
xiaoCJ 2 years ago
parent 267ccca08a
commit e75254613f

@ -16,7 +16,5 @@ public class JWTUtil {
.setSigningKey(SECRET.getBytes(StandardCharsets.UTF_8))
.parseClaimsJws(key)
.getBody();
}
}

@ -66,7 +66,7 @@ public class UsersService extends CoreBaseService<Users> {
throw new GlobalException("用户名或密码不能为空");
}
if (!StringUtils.isEmpty(usersQuery.getKey())) {
// 单登录
// 单登录
final Map<String, Object> decode = JWTUtil.decode(usersQuery.getKey());
final String username = (String) decode.get("username");
final String password = (String) decode.get("password");

Loading…
Cancel
Save