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