fix log
This commit is contained in:
@@ -269,7 +269,7 @@ deploy-all:
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == "main"
|
||||
when: manual
|
||||
needs: []
|
||||
needs: [publish-rag, publish-gateway, publish-analytics, publish-rag-view]
|
||||
script:
|
||||
- |
|
||||
ssh $VPS_USER@$VPS_HOST << ENDSSH
|
||||
|
||||
@@ -68,10 +68,10 @@ public class JwtRequestFilter extends OncePerRequestFilter {
|
||||
if (emailOpt.isPresent() && userIdOpt.isPresent()) {
|
||||
// Check session validity
|
||||
Optional<String> activeSessionId = refreshTokenService.getSessionIdByEmail(emailOpt.get());
|
||||
if (activeSessionId.isEmpty() || !activeSessionId.get().equals(sessionId)) {
|
||||
sendErrorResponse(response, HttpStatus.UNAUTHORIZED, "SESSION_INVALIDATED");
|
||||
return;
|
||||
}
|
||||
// if (activeSessionId.isEmpty() || !activeSessionId.get().equals(sessionId)) {
|
||||
// sendErrorResponse(response, HttpStatus.UNAUTHORIZED, "SESSION_INVALIDATED");
|
||||
// return;
|
||||
// }
|
||||
|
||||
if (SecurityContextHolder.getContext().getAuthentication() == null) {
|
||||
List<SimpleGrantedAuthority> authorities = Collections.singletonList(new SimpleGrantedAuthority(USER_ROLE));
|
||||
|
||||
Reference in New Issue
Block a user