NAME Plack::App::Login::Password - Plack login/password application. SYNOPSIS use Plack::App::Login::Password; my $obj = Plack::App::Login::Password->new(%parameters); my $psgi_ar = $obj->call($env); my $app = $obj->to_app; METHODS "new" my $obj = Plack::App::Login::Password->new(%parameters); Constructor. Returns instance of object. * "css" Instance of CSS::Struct::Output object. Default value is CSS::Struct::Output::Raw instance. * "generator" HTML generator string. Default value is 'Plack::App::Login; Version: __VERSION__'. * "tags" Instance of Tags::Output object. Default value is Tags::Output::Raw->new('xml' => 1) instance. * "title" Page title. Default value is 'Login page'. "call" my $psgi_ar = $obj->call($env); Implementation of login page. Returns reference to array (PSGI structure). "to_app" my $app = $obj->to_app; Creates Plack application. Returns Plack::Component object. EXAMPLE use strict; use warnings; use CSS::Struct::Output::Indent; use Plack::App::Login::Password; use Plack::Runner; use Tags::Output::Indent; # Run application. my $app = Plack::App::Login::Password->new( 'css' => CSS::Struct::Output::Indent->new, 'generator' => 'Plack::App::Login::Password', 'tags' => Tags::Output::Indent->new( 'preserved' => ['style'], 'xml' => 1, ), )->to_app; Plack::Runner->new->run($app); # Output: # HTTP::Server::PSGI: Accepting connections at http://0:5000/ # > curl http://localhost:5000/ # # # # # # # # Login page # # # # #
#
# #
#
# # DEPENDENCIES Plack::Util::Accessor, Plack::Component::Tags::HTML, Tags::HTML::Login::Password. SEE ALSO Plack::App::Login Plack login application. REPOSITORY AUTHOR Michal Josef Špaček LICENSE AND COPYRIGHT © 2023 Michal Josef Špaček BSD 2-Clause License VERSION 0.01