File Coverage

blib/lib/Bracket/Form/Password/Reset.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1              
2             use HTML::FormHandler::Moose;
3 4     4   38 extends 'HTML::FormHandler::Model::DBIC';
  4         11  
  4         46  
4             with 'HTML::FormHandler::Render::Table';
5              
6             has '+item_class' => ( default => 'Player' );
7             has_field 'password' => ( type => 'Password' );
8             has_field 'confirm_password' => ( type => 'PasswordConf' );
9             has_field 'submit' => ( type => 'Submit', value => 'Reset password' );
10              
11             #sub validate {
12             # my $self = shift;
13             #
14             # # Check the given email to see that it exists in the database
15             # my $is_valid =
16             # $self->schema->resultset('Player')
17             # ->find( { email => $self->field('email')->value } );
18             # if ( !$is_valid ) {
19             # $self->field('email')->add_error('Email not on file');
20             # }
21             #
22             # return;
23             #}
24              
25             no HTML::FormHandler::Moose;
26 4     4   42120 __PACKAGE__->meta->make_immutable;
  4         20  
  4         22  
27             1