line |
true |
false |
branch |
146
|
0 |
8 |
ref $_[0] eq 'HASH' ? :
|
154
|
1 |
7 |
if $args{'users_source'}
|
157
|
1 |
7 |
if $args{'roles_source'}
|
160
|
1 |
7 |
if $args{'user_roles_source'}
|
164
|
1 |
7 |
if ($args{'users_table'})
|
167
|
1 |
0 |
unless $args{'users_source'}
|
170
|
1 |
7 |
if ($args{'roles_table'})
|
173
|
1 |
0 |
unless $args{'roles_source'}
|
176
|
1 |
7 |
if ($args{'user_roles_table'})
|
179
|
1 |
0 |
unless $args{'user_roles_source'}
|
510
|
0 |
10 |
if $self->plugin->disable_roles
|
527
|
0 |
10 |
unless ref $info->{'cond'} eq 'HASH'
|
529
|
10 |
0 |
if ($info->{'class'} eq $user_roles_class and $info->{'attrs'}{'accessor'} eq 'multi' and $info->{'attrs'}{'join_type'} eq 'LEFT' and scalar keys %cond == 1)
|
554
|
0 |
9 |
if $self->plugin->disable_roles
|
584
|
40 |
0 |
$column eq 'pw_reset_code' ? :
|
|
778 |
40 |
$column eq 'username' ? :
|
600
|
6 |
196 |
unless defined $username and defined $password
|
604
|
120 |
76 |
unless $user
|
606
|
0 |
76 |
if (my $password_check = $self->users_password_check)
|
615
|
60 |
16 |
if (my $match = $self->match_password($password, $user->$password_column))
|
618
|
56 |
4 |
if ($options{'lastlogin'})
|
619
|
36 |
20 |
if (my $lastlogin = $user->lastlogin)
|
620
|
36 |
0 |
if (ref $lastlogin eq '')
|
641
|
6 |
20 |
unless defined $username and defined $password
|
647
|
18 |
2 |
if (my $pwchanged = $self->users_pwchanged_column)
|
657
|
2 |
278 |
unless defined $username
|
664
|
139 |
139 |
unless $self->user_as_object
|
669
|
30 |
248 |
unless ($user)
|
674
|
124 |
124 |
unless ($self->user_as_object)
|
675
|
124 |
0 |
if (my $roles_key = $self->roles_key)
|
687
|
4 |
40 |
unless $code and $code ne ''
|
691
|
32 |
8 |
unless $user
|
701
|
4 |
28 |
unless defined $username and $username ne ''
|
714
|
4 |
136 |
unless $username
|
719
|
10 |
126 |
unless $user
|
722
|
126 |
0 |
if (my $roles_key = $self->roles_key)
|
723
|
4 |
122 |
if (my $new_roles = delete $update{$roles_key})
|
736
|
4 |
8 |
if ($new_roles->{$role_name} and not $existing_roles{$role_name}) { }
|
|
0 |
8 |
elsif (not $new_roles->{$role_name} and $existing_roles{$role_name}) { }
|
778
|
126 |
0 |
if (my $users_pwresetcode_column = $self->users_pwresetcode_column)
|
779
|
10 |
116 |
if (exists $update{'pw_reset_code'})
|
786
|
0 |
126 |
if $update{'username'}
|
792
|
2 |
168 |
unless defined $username
|
804
|
4 |
164 |
unless ($user)
|
822
|
2 |
5 |
unless defined $user and ref $user eq 'HASH' || &blessed($user) && $user->isa('DBIx::Class::Row')
|
827
|
0 |
10 |
unless my $expiry = $self->password_expiry_days
|
829
|
10 |
0 |
if (my $pwchanged = $self->users_pwchanged_column) { }
|
831
|
5 |
5 |
$self->user_as_object ? :
|
834
|
2 |
8 |
unless $last_changed
|
836
|
8 |
0 |
if (ref $last_changed ne 'DateTime')
|
842
|
4 |
4 |
$duration->in_units('days') > $expiry ? :
|