Apache::Wyrd::Site::Login - HTML Interface for Apache::Wyrd::Services::(Pre)Auth
<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>
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).
(format: (returns) name (arguments after self))
_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.
Reserves the _format_output method.
Barry King <email@example.com>
General-purpose HTML-embeddable perl object
Authentication and authorization services for the Apache::Wyrd hierarchy.
Authentication and Authorization on demand for the Apache::Wyrd hierarchy.
Copyright 2002-2007 Wyrdwright, Inc. and licensed under the GNU GPL.
See LICENSE under the documentation for