mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-02 19:27:57 +08:00
Set security association right after login
This commit is contained in:
parent
34202255df
commit
ff2d63c3a6
@ -13,6 +13,7 @@ package com.haulmont.cuba.web;
|
||||
import com.haulmont.cuba.security.app.LoginService;
|
||||
import com.haulmont.cuba.security.global.LoginException;
|
||||
import com.haulmont.cuba.security.global.UserSession;
|
||||
import com.haulmont.cuba.core.sys.ServerSecurityUtils;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
@ -48,6 +49,7 @@ public class Connection
|
||||
connected = true;
|
||||
this.login = login;
|
||||
this.password = password;
|
||||
ServerSecurityUtils.setSecurityAssociation(session.getLogin(), session.getId());
|
||||
fireConnectionListeners();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user