fix some inaccuracies in the documentation
[chaz/chatty] / lib / Chatty / Form / Register.pm
1 package Chatty::Form::Register;
2
3 use HTML::FormHandler::Moose;
4 extends 'HTML::FormHandler::Model::DBIC';
5 use namespace::autoclean;
6
7 has '+item_class' => (default => 'Account');
8 has '+unique_messages' => (default => sub {
9 {username => 'Username is already registered'};
10 });
11
12 has_field 'username' => (input_class => 'validate[required,ajax[register_validate]]', label => 'Username', required => 1, unique => 1);
13 has_field 'password' => (input_class => 'validate[required]', type => 'Password', required => 1);
14 has_field 'password_confirm' => (input_class => 'validate[required,equals[password]]', type => 'PasswordConf', required => 1);
15 has_field 'submit' => (type => 'Submit', value => 'Register');
16 has_field 'reset' => (type => 'Reset', value => 'Reset');
17
18 __PACKAGE__->meta->make_immutable;
19 1;
This page took 0.029874 seconds and 4 git commands to generate.