Login a user

From OpenCms Wiki
Revision as of 17:29, 13 June 2007 by Pam (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

If you want to manage the login yourself, there are some hints here: Custom Login Page.

The simplest case to login a user is this:

CmsJspActionElement element = new CmsJspActionElement(pageContext, request, response);
CmsJspLoginBean login = new CmsJspLoginBean(pageContext, request, response);
login.login(id, password);
if (login.isLoginSuccess())
  //do stuff...
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox