mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-04 20:28:00 +08:00
PL-8242 Do not use User session fixation protection if connection is not authenticated
This commit is contained in:
parent
7fd3acff5e
commit
a4fa2c0afc
@ -84,7 +84,8 @@ public class DefaultApp extends App implements ConnectionListener, UserSubstitut
|
||||
// substitution listeners are cleared by connection on logout
|
||||
connection.addSubstitutionListener(this);
|
||||
|
||||
if (webConfig.getUseSessionFixationProtection()) {
|
||||
if (connection.isAuthenticated()
|
||||
&& webConfig.getUseSessionFixationProtection()) {
|
||||
VaadinService.reinitializeSession(VaadinService.getCurrentRequest());
|
||||
|
||||
WrappedSession session = VaadinSession.getCurrent().getSession();
|
||||
|
Loading…
Reference in New Issue
Block a user