X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fchatty;a=blobdiff_plain;f=lib%2FChatty%2FForm%2FLogin.pm;fp=lib%2FChatty%2FForm%2FLogin.pm;h=aa25b1d89ac7c79998afc68b1793a4789c04392c;hp=0000000000000000000000000000000000000000;hb=e872d7b7c02a1006e4481271d902ad1ca1e0b8d4;hpb=9a7bfdb65af033380ae3c9242b2b3815bdc2bdc5 diff --git a/lib/Chatty/Form/Login.pm b/lib/Chatty/Form/Login.pm new file mode 100644 index 0000000..aa25b1d --- /dev/null +++ b/lib/Chatty/Form/Login.pm @@ -0,0 +1,12 @@ +package Chatty::Form::Login; + +use HTML::FormHandler::Moose; +extends 'HTML::FormHandler'; + +has_field 'username' => (label => 'Username', required => 1); +has_field 'password' => (type => 'Password', required => 1); +has_field 'submit' => (type => 'Submit', value => 'Login'); + +no HTML::FormHandler::Moose; +__PACKAGE__->meta->make_immutable; +1;