mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
user update should proc with api key and cookie login too
This commit is contained in:
@@ -67,7 +67,10 @@ public class SecurityCheckProvider implements InjectableProvider<SecurityCheck,
|
||||
HttpSession session = request.getSession(false);
|
||||
if (session != null) {
|
||||
User user = (User) session.getAttribute(CommaFeedApplication.SESSION_USER);
|
||||
return Optional.fromNullable(user);
|
||||
if (user != null) {
|
||||
userService.afterLogin(user);
|
||||
return Optional.of(user);
|
||||
}
|
||||
}
|
||||
return Optional.absent();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user