AW: [opencms-dev] Redirect to a login page
Thomas Weckert
t.weckert at alkacon.com
Thu Jul 1 12:20:02 CEST 2004
Please refer to this section in opencms.properties:
#
# Select authentication mode:
# true=HTTP basic authentication
# false=form based authentication
# Give the URI in the system where the auth.form resides.
########################################################################
#########
auth.basic=true
auth.form_uri=
To use a login page, you would use these settings:
auth.basic=false
auth.form_uri=/a_folder/my_login_page.jsp
my_login_page should contain a username/password form. Whenever the form
gets submitted, try to do a login with
loginUser(String username, String password) on the CmsObject with the
submitted username and password. If the login was successful, redirect
the response to the original requested URI.
Regards,
Thomas Weckert
Alkacon Software - The OpenCms Experts
http://www.alkacon.com
> -----Ursprüngliche Nachricht-----
> Von: opencms-dev-admin at opencms.org
> [mailto:opencms-dev-admin at opencms.org] Im Auftrag von Michael Goodwin
> Gesendet: Donnerstag, 1. Juli 2004 12:10
> An: opencms-dev at opencms.org
> Betreff: [opencms-dev] Redirect to a login page
>
>
>
>
>
>
> Is there an inbuilt mechanism to do this? If you're visiting
> a page which you don't have read access to. Preferably
> sending a redirect as a parameter to the login page somehow as well.
>
> thanks,
> Mike.
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list,
> please visit http://mail.opencms.org/mailman/listinfo/opencms-dev
>
>
More information about the opencms-dev
mailing list