Sfoglia il codice sorgente

cleanup middleware

pull/1/head
Slixe 2 anni fa
parent
commit
8294cffafb
1 ha cambiato i file con 0 aggiunte e 4 eliminazioni
  1. +0
    -4
      src/main/java/fr/slixe/benchmarks/http/AuthMiddleware.java

+ 0
- 4
src/main/java/fr/slixe/benchmarks/http/AuthMiddleware.java Vedi 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…
Annulla
Salva