lib/Bracket/Form/Password/Reset.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 16 / 16 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/Bracket/Form/Login.pm ↑ Summary lib/Bracket/Schema/Result/Game.pm »
1 package Bracket::Form::Password::Reset;
2  
3 4 ▶use HTML::FormHandler::Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 extends 'HTML::FormHandler::Model::DBIC';
5 4 with 'HTML::FormHandler::Render::Table';
6  
7 4 has '+item_class' => ( default => 'Player' );
8 4 has_field 'password' => ( type => 'Password' );
9 4 has_field 'confirm_password' => ( type => 'PasswordConf' );
10 4 has_field 'submit' => ( type => 'Submit', value => 'Reset password' );
11  
12 #sub validate {
13 # my $self = shift;
14 #
15 # # Check the given email to see that it exists in the database
16 # my $is_valid =
17 # $self->schema->resultset('Player')
18 # ->find( { email => $self->field('email')->value } );
19 # if ( !$is_valid ) {
20 # $self->field('email')->add_error('Email not on file');
21 # }
22 #
23 # return;
24 #}
25  
26 4 ▶no HTML::FormHandler::Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
27 4 __PACKAGE__->meta->make_immutable;
28 4 1
« lib/Bracket/Form/Login.pm ↑ Summary lib/Bracket/Schema/Result/Game.pm »