[opencms-dev] why the CmsObject.loginUser fire the same event two times?

Ernesto De Santis ernesto.desantis at colaborativa.net
Mon Apr 26 22:29:01 CEST 2004


Hello All

Why the CmsObject.loginUser fire the same event two times?
In OpenCms 5.0.0

public String loginUser(String username, String password) throws
CmsException {
    // login the user
    CmsUser newUser = m_rb.loginUser(m_context.currentUser(),
m_context.currentProject(), username, password);
    // init the new user
    init(too many parameters.....);
*   this.fireEvent(com.opencms.flex.I_CmsEventListener.EVENT_LOGIN_USER,
newUser);
    //return the user-name
*   this.fireEvent(com.opencms.flex.I_CmsEventListener.EVENT_LOGIN_USER,
newUser);
    return (newUser.getName());
}

Bye
Ernesto


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.668 / Virus Database: 430 - Release Date: 24/04/2004




More information about the opencms-dev mailing list