Set security association right after login

This commit is contained in:
Konstantin Krivopustov 2009-02-02 08:10:10 +00:00
parent 34202255df
commit ff2d63c3a6

View File

@ -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();
}