User Login/Logout/Register XQuery Library
XQuery
Switch branches/tags
Nothing to show
Latest commit 88fc813 Dec 8, 2010 @eedeebee eedeebee Empty commit
Permalink
Failed to load latest commit information.
LICENSE.txt Add Ashish's user login code Sep 15, 2004
README.txt
checklogin.xqy
default.xqy
login.xqy
logout.xqy Add Ashish's user login code Sep 15, 2004
register.xqy Add Ashish's user login code Sep 15, 2004
registration-form.xqy Add Ashish's user login code Sep 15, 2004
user-lib.xqy

README.txt

Instructions to use the sample login and self-registration code:

1. Place the user-lib.xqy xquery library file in the Modules directory.
2. Place the other xuqery files in the HTTP server root directory.
3. Enable application level authentication 
	a. Go to the HTTP Server
	b. Select authentication = application-level
	c. default user = nobody
	d. Save
4. Amp the register-user function
	a. Go to Security-> Amps -> Add
	b. Enter:
		Local Name = register-user
		Namespace = http://www.w3.org/2003/05/xpath-functions
		Document URI = /user-lib.xqy
	c. Check admin role
	d. Save
5. Go to the login page.
6. Sample code contains couple of pages:
	a. login.xqy - Login Page
	b. default.xqy - Default Page, this page requires user
	   to be logged into the system.
	c. self-registration.xqy - Login page provide a link to
	   Self Registration page
	d. logout.xqy - Logout page

This sample code contains very simple functionality and a very basic user
login-logout-self-registration workflow. The core functions are in the
user-lib.xqy, which can be used to build a more complex workflow.