CGI-Authen-Simple
view release on metacpan or search on metacpan
lib/CGI/Authen/Simple.pm view on Meta::CPAN
=head1 ACKNOWLEDGEMENTS
=over
=item *
This core functionality of this module was developed during my employ at
HRsmart, Inc. L<http://www.hrsmart.com> and its public release was
graciously approved.
=back
=head1 COPYRIGHT
Copyright 2005, Shane Allen. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
=cut
__DATA__
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>[% HTML_TITLE %]</title>
<style type="text/css">
#container {
width: 560px;
margin: 10px;
margin-left: auto;
margin-right: auto;
padding: 10px;
}
#banner {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 0.8em;
padding: 5px;
margin-bottom: 25px;
border: 1px solid gray;
background-color: rgb(223, 229, 235);
}
#content {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 0.8em;
padding: 5px;
}
#footer {
clear: both;
padding: 5px;
margin-top: 5px;
border: 1px solid gray;
background-color: rgb(213, 219, 225);
}
.error {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 9pt;
font-weight: bold;
color: red;
}
#idtable {
border: 1px solid #666;
}
#idtable tbody tr td {
padding: 3px 8px;
font-size: 8pt;
border: 0px solid black;
border-left: 1px solid #c9c9c9;
text-align: center;
}
</style>
</head>
<body>
<div id="container">
<div id="banner">[% HTML_HEADER %]</div>
<form method="post">
<div id="content" align="center">
[%- IF login_failed %]
<p align="center" class="error">Invalid username or password</p>
[%- END %]
<table id="idtable">
<tr>
<td>Username:</td>
<td><input type="text" name="username" /></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="password" name="password" /></td>
</tr>
<tr>
<td align="center" colspan="2">
<input type="submit" name="submit" value="Submit" />
</td>
</table>
</div>
</form>
<div id="footer">[% HTML_FOOTER %]</div>
</div>
</body>
</html>
( run in 0.463 second using v1.01-cache-2.11-cpan-39bf76dae61 )