登录鉴权增加字段,放开登录接口不用鉴权,数据库密码加密

This commit is contained in:
weitang 2025-05-30 14:59:18 +08:00
parent a4f3f7510f
commit fa23e953a9
3 changed files with 27 additions and 27 deletions

View File

@ -52,7 +52,7 @@ public class SecurityConfig {
// 公开路径配置 // 公开路径配置
private static final String[] PUBLIC_PATHS = { private static final String[] PUBLIC_PATHS = {
"/api/auth/**", "/auth/**",
"/api/public/**", "/api/public/**",
"/swagger-ui/**", "/swagger-ui/**",
"/v3/api-docs/**", "/v3/api-docs/**",

View File

@ -30,7 +30,7 @@ public class AppUserServiceImpl extends ServiceImpl<AppUserMapper, AppUser> impl
@Override @Override
public AppUser findByUsername(String username) { public AppUser findByUsername(String username) {
return getOne(new QueryWrapper<AppUser>().eq("username", username).select( "id", "username", "orgid", "usertype","nickname")); return getOne(new QueryWrapper<AppUser>().eq("username", username).select( "id", "username","password","status", "orgid", "usertype","nickname"));
} }
@Override @Override

View File

@ -147,7 +147,7 @@ spring:
on-profile: dev on-profile: dev
security: security:
jwt: jwt:
enabled: false enabled: true
logging: logging:
level: level:
com.stdproject: DEBUG com.stdproject: DEBUG