[opencms-dev] User login

Daniel Noatnick dno at archikart.de
Tue Feb 15 16:26:52 CET 2005


Hallo group,

I use Opencms 6 alpha 3 with Tomcat 4.1.30, MySQL 4.0.23, WinXPSP2

and i have problem with user identification. I logged in in opencms normaly.
That works.

In a JSP i test, if a user is logged in with the following code:

CmsJspActionElement cms = new CmsJspActionElement(pageContext, request, response);
CmsUser cmsU = cms.getRequestContext().currentUser();

// for debugging
 out.println("Name und Login: " + cmsU.getFullName());
 out.println("Gesperrt?: " + cmsU.getDisabled());
 out.println("Type: " + cmsU.getType());
 out.println("Email: " + cmsU.getEmail());
 out.println("isWebUser: " + cmsU.isWebUser());
 out.println("isSystemUser: " + cmsU.isSystemUser());
 out.println("isGuestUser: " + cmsU.isGuestUser());
 
if(cmsU.isSystemUser()) {
  response.sendRedirect(cms.link("startseite.jsp"));
  
  
 }
 else {
  //show login Form
 }


Now i can see my username etc. but result of function "isSystemUser()" is false. Why?
Can anybody help me to solve the problem?


Thanks a Lot

Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20050215/e87b4f52/attachment.htm>


More information about the opencms-dev mailing list