blib/lib/Lemonldap/NG/Portal/Password/Demo.pm

filter: Statementstmt 82.3% 14 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 4 / 6 Podpod 0.0% 0 / 3 totaltotal 69.2% 18 / 26 CC 1 SCAR 2.9
CC
1
Cov
82%
confirm
2.0
modifyPassword
2.0
BEGIN
1.0
CRAP 1.3
« blib/lib/Lemonldap/NG/Portal/Lib/OIDCPlugin.pm ↑ Summary blib/lib/Lemonldap/NG/Portal/Password/Null.pm »
1 package Lemonldap::NG::Portal::Password::Demo;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use Mouse;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use Lemonldap::NG::Portal::Main::Constants qw(
Subroutine BEGIN: called CC=1 SCAR=0.0
6 PE_ERROR
7 PE_PASSWORD_OK
8 1 );
9  
10 1 extends 'Lemonldap::NG::Portal::Password::Base';
11  
12 1 our $VERSION = '2.0.16';
13  
14 5 ▶sub init {
Subroutine init: called CC=1 SCAR=0.0
Pod undocumented
15 5 my ($self) = @_;
16 5 return $self->SUPER::init;
17 }
18  
19 0 ▶sub confirm {
Subroutine confirm: not called CC=1 SCAR=6.9
Pod undocumented
20 0 my ( $self, $req, $pwd ) = @_;
21 0 return ( $pwd eq $req->{sessionInfo}->{uid} );
22 }
23  
24 0 ▶sub modifyPassword {
Subroutine modifyPassword: not called CC=1 SCAR=6.9
Pod undocumented
25  
26 # Nothing to do here, all new passwords are accepted
27 0 return PE_PASSWORD_OK;
28 }
29  
30 1 1;
« blib/lib/Lemonldap/NG/Portal/Lib/OIDCPlugin.pm ↑ Summary blib/lib/Lemonldap/NG/Portal/Password/Null.pm »