Login a user

From OpenCms Wiki
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