mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
don't create a session if it does not exists
This commit is contained in:
@@ -53,7 +53,7 @@ public class NextUnreadServlet extends HttpServlet {
|
||||
final Optional<User> user = new UnitOfWork<Optional<User>>(sessionFactory) {
|
||||
@Override
|
||||
protected Optional<User> runInSession() throws Exception {
|
||||
return userService.login(req.getSession());
|
||||
return userService.login(req.getSession(false));
|
||||
}
|
||||
}.run();
|
||||
if (!user.isPresent()) {
|
||||
|
||||
Reference in New Issue
Block a user