some optimizations
This commit is contained in:
parent
130525738a
commit
25f55a6262
@ -26,7 +26,7 @@ import lombok.Setter;
|
||||
@Setter
|
||||
public class LoggedUser implements HttpSessionBindingListener {
|
||||
|
||||
private String username;
|
||||
private final String username;
|
||||
private UserService userService;
|
||||
private UserTokenService userTokenService;
|
||||
|
||||
@ -37,6 +37,7 @@ public class LoggedUser implements HttpSessionBindingListener {
|
||||
}
|
||||
|
||||
public LoggedUser() {
|
||||
username = null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -28,9 +28,6 @@ import org.springframework.web.filter.GenericFilterBean;
|
||||
@Component
|
||||
public class TokenAuthenticationFilter extends GenericFilterBean {
|
||||
|
||||
@Autowired
|
||||
private TokenRepository tokenRepository;
|
||||
|
||||
@Autowired
|
||||
private UserTokenService userTokenService;
|
||||
|
||||
|
@ -25,3 +25,5 @@ spring.jackson.serialization.write-dates-as-timestamps=false
|
||||
spring.cache.jcache.config=classpath:ehcache.xml
|
||||
logging.level.org.springframework.cache = DEBUG
|
||||
#test.bindAddress=192.168.1.106
|
||||
|
||||
chatto.token.timeout-duration=10_000
|
Loading…
Reference in New Issue
Block a user