NAME
Apache::Wyrd::Site::Login - HTML Interface for Apache::Wyrd::Services::(Pre)Auth
SYNOPSIS
<BASENAME::Login>
<BASENAME::Template name="login">
<input type="text" name="username"><br>
<input type="text" name="password">
</BASENAME::Template>
<BASENAME::Template name="username">
You are logged in as $:username
</BASENAME::Template>
<BASENAME::Template name="error">
Login Error: Try again.<br>
<input type="text" name="username"><br>
<input type="text" name="password">
</BASENAME::Template>
</BASENAME::Login>
DESCRIPTION
The Login Wyrd is used to provide an interface on any page for logging in as a user of the site. It requires three templates: One for the login itself (called "login"), another to show that the user is logged in which can show information about which user is logged in (called 'username'), and a third for login errors (see SYNOPSIS for a very bare-bones example).
HTML ATTRIBUTES
NONE
PERL METHODS
(format: (returns) name (arguments after self))
- (void)
_form_template
(scalar) -
_form_template provides the hidden data that is needed to supply the Apache::Wyrd::Services::Auth handler with the necessary security credentials and return values. It does not need to be overridden when using the Auth or PreAuth Services. It is provided as a method in order to handle any other parameters the webmaster has added to the login process.
BUGS/CAVEATS
Reserves the _format_output method.
AUTHOR
Barry King <wyrd@nospam.wyrdwright.com>
SEE ALSO
- Apache::Wyrd
-
General-purpose HTML-embeddable perl object
- Apache::Wyrd::Services::Auth
-
Authentication and authorization services for the Apache::Wyrd hierarchy.
- Apache::Wyrd::Services::PreAuth
-
Authentication and Authorization on demand for the Apache::Wyrd hierarchy.
LICENSE
Copyright 2002-2007 Wyrdwright, Inc. and licensed under the GNU GPL.
See LICENSE under the documentation for Apache::Wyrd
.