Browse Source

cleanup middleware

pull/1/head
Slixe 1 year ago
parent
commit
8294cffafb
1 changed files with 0 additions and 4 deletions
  1. +0
    -4
      src/main/java/fr/slixe/benchmarks/http/AuthMiddleware.java

+ 0
- 4
src/main/java/fr/slixe/benchmarks/http/AuthMiddleware.java View File

@@ -20,12 +20,8 @@ public class AuthMiddleware extends Middleware
@Override
public void before(BeforeEvent event, Request request, Response response, Route route) throws RequestException
{
log.info("{}", request.getMethod());
log.info(request.getIp());
log.info(request.getUri());
Session session = request.getSession();
if (session == null || session.get(User.class) == null) {
log.info("NOT LOGGED IN");
throw new UnauthorizedOperationException();
}
else {


Loading…
Cancel
Save