NAME

Web::VWF::Display::index - The home page, with its contact form

VERSION

Version 0.003.0

DESCRIPTION

With no parameters it shows the index.tmpl template. With ?person=NAME it looks the address of NAME up in the index database (see Web::VWF::Data::index) and sends a message there with Web::VWF::Mail, signed with DKIM if the site has a key. Each client address may send two messages in the life of the worker.

action=login with name and password starts an administrator session (a cookie, kept in the logindata cache for a day) and redirects to ?page=admin. That login is a placeholder: the credentials are fixed in the code and it must be replaced before a site relies on it.

METHODS

html

Takes config, logger, cachedir and the index data handle, which Web::VWF passes to every page. Croaks without _info or the index handle, or when the person named has no address. Returns the HTML, or a string starting Location: for a redirect.

API SPECIFICATION

INPUT

{
	index => { type => 'object' },
	config => { type => 'object', optional => 1 },
	logger => { type => 'object', optional => 1 },
	cachedir => { type => 'string', optional => 1 },
}

and the CGI parameters person, action, name, password, page, lang and lint_content.

OUTPUT

{ type => 'string' }

AUTHOR

Nigel Horne, <njh at nigelhorne.com>

LICENCE AND COPYRIGHT

Copyright 2010-2026 Nigel Horne.

Usage is subject to the GPL2 licence terms. If you use it, please let me know.