[opencms-dev] CmsJspLoginBean

Florian Hopf hopf at synyx.de
Fri Aug 4 15:35:49 CEST 2006


Hi,

Christoph P. Kukulies schrieb:
> I'm fiddling with getting a Webuser login element working. I see no
> way to differ between a web user and a workplace login user. Would
> CmsJspLoginBean be the appropriate class for this?
>
>   
Where do you want to identify the user? The following should work:

cms.loginUser(username, password);
CmsUser user = cms.getRequestContext().currentUser();
if (user.isWebUser()) {
    // do sth
}

Kind regards
Florian

-- 
/**
 * Florian Hopf
 * Synyx GmbH & Co. KG
 * phone  +49(0)721 9118303
 * eMail  hopf at synyx.de
 * www    http://www.synyx.de
 * irc    irc://irc.synyx.de
 */




More information about the opencms-dev mailing list