浏览代码

cleanup middleware

pull/1/head
Slixe 2 年前
父节点
当前提交
8294cffafb
共有 1 个文件被更改,包括 0 次插入4 次删除
  1. +0
    -4
      src/main/java/fr/slixe/benchmarks/http/AuthMiddleware.java

+ 0
- 4
src/main/java/fr/slixe/benchmarks/http/AuthMiddleware.java 查看文件

@@ -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 {


正在加载...
取消
保存