[opencms-dev] Login User not found in Database
Mario Jäger
m.jaeger at alkacon.com
Fri Jul 1 09:50:46 CEST 2011
Hi Christian,
OpenCms provides the login bean org.opencms.jsp.CmsJspLoginBean to
handle the login process. That bean provides different login() methods.
For example, the method login(username, password, projectname,
redirectUri) to login a user to a specific project and redirect to
another URI after a successful login.
I do not know if you already know it: To develop a login form, you also
have to to set the property "login-form" on the protected folder to
point to the login form. For example: You have the protected folder
/sites/default/demo_en/protect/. And the login form is
/sites/default/demo_en/loginform.html. Then, you have to set the
"login-form" property on the protected folder to: /demo_de/loginform.html
Kind Regards,
Mario.
Am 09.06.2011 10:48, schrieb Christian Funken:
> Hello there.
>
> I'm currently trying my hands on a very basic frontend login script. All
> that is required is a login + redirect and I have found plenty of online
> resources to help me realize this.
> However, the login simply will not work. It always throws an exception,
> claiming that the user was not found.
>
> It looks like this:
> javax.servlet.jsp.JspException: javax.servlet.ServletException:
> org.opencms.db.CmsDbEntryNotFoundException: User "C.Funken" was not found.
> Reason: org.opencms.db.CmsDbEntryNotFoundException: User "C.Funken"
> was not found.
> Reason: User "C.Funken" was not found.
>
> I tried this with multiple users on both the Online and Offline versions
> The standart login ( the one for the backend ) works fine with all those
> users.
>
> The login script boils down to reading some request parameters and these
> 2 lines:
>
> cmsObject.loginUser(user, password);
> response.sendRedirect(url);
>
> Is there something I need to do or configure before this can work?
>
> - Christian Funken
> ________________
>
> *VISION UNLTD. CREATIVE WORX*
> Bruesselerstr. 85
> D-50672 Koeln c.funken at vucx.de <mailto:c.funken at vucx.de>
> check out our web page: www.vucx.de <http://www.vucx.de/>
> die medienprofis: www.profigilde.de <http://www.profigilde.de/>
> official agent for visual media directory: www.productionparadise.com
> <http://www.productionparadise.com/>
>
>
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
--
-------------------
Mario Jäger
Alkacon Software GmbH - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org
More information about the opencms-dev
mailing list