mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Merge branch '7.0.x'
This commit is contained in:
+1
-1
@@ -309,7 +309,7 @@ public class TransportHandlingSockJsService extends AbstractSockJsService implem
|
||||
Principal currentPrincipal = request.getPrincipal();
|
||||
if (!principal.equals(currentPrincipal) &&
|
||||
(currentPrincipal == null || !principal.getName().equals(currentPrincipal.getName()))) {
|
||||
logger.debug("The user for the session and the request do not match¶.");
|
||||
logger.debug("The user for the session and the request do not match.");
|
||||
response.setStatusCode(HttpStatus.NOT_FOUND);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user