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