line |
true |
false |
branch |
160
|
0 |
6 |
ref $_[0] eq 'HASH' ? :
|
166
|
0 |
6 |
if ($args{'users_table'})
|
169
|
0 |
0 |
unless $args{'users_source'}
|
172
|
0 |
6 |
if ($args{'roles_table'})
|
175
|
0 |
0 |
unless $args{'roles_source'}
|
178
|
0 |
6 |
if ($args{'user_roles_table'})
|
181
|
0 |
0 |
unless $args{'user_roles_source'}
|
489
|
0 |
10 |
if $self->plugin->disable_roles
|
505
|
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)
|
530
|
0 |
9 |
if $self->plugin->disable_roles
|
560
|
40 |
0 |
$column eq 'pw_reset_code' ? :
|
|
771 |
40 |
$column eq 'username' ? :
|
576
|
6 |
196 |
unless defined $username and defined $password
|
580
|
120 |
76 |
unless $user
|
582
|
0 |
76 |
if (my $password_check = $self->users_password_check)
|
591
|
60 |
16 |
if (my $match = $self->match_password($password, $user->$password_column))
|
594
|
56 |
4 |
if ($options{'lastlogin'})
|
595
|
36 |
20 |
if (my $lastlogin = $user->lastlogin)
|
596
|
36 |
0 |
if (ref $lastlogin eq '')
|
617
|
6 |
20 |
unless defined $username and defined $password
|
623
|
18 |
2 |
if (my $pwchanged = $self->users_pwchanged_column)
|
633
|
2 |
272 |
unless defined $username
|
640
|
136 |
136 |
unless $self->user_as_object
|
645
|
26 |
246 |
unless ($user)
|
650
|
123 |
123 |
unless ($self->user_as_object)
|
651
|
123 |
0 |
if (my $roles_key = $self->roles_key)
|
663
|
4 |
40 |
unless $code and $code ne ''
|
667
|
32 |
8 |
unless $user
|
677
|
4 |
28 |
unless defined $username and $username ne ''
|
690
|
4 |
136 |
unless $username
|
695
|
10 |
126 |
unless $user
|
698
|
126 |
0 |
if (my $roles_key = $self->roles_key)
|
699
|
4 |
122 |
if (my $new_roles = delete $update{$roles_key})
|
712
|
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}) { }
|
754
|
126 |
0 |
if (my $users_pwresetcode_column = $self->users_pwresetcode_column)
|
755
|
10 |
116 |
if (exists $update{'pw_reset_code'})
|
762
|
0 |
126 |
if $update{'username'}
|
768
|
2 |
167 |
unless defined $username
|
780
|
4 |
163 |
unless ($user)
|
798
|
2 |
5 |
unless defined $user and ref $user eq 'HASH' || &blessed($user) && $user->isa('DBIx::Class::Row')
|
803
|
0 |
10 |
unless my $expiry = $self->password_expiry_days
|
805
|
10 |
0 |
if (my $pwchanged = $self->users_pwchanged_column) { }
|
807
|
5 |
5 |
$self->user_as_object ? :
|
810
|
2 |
8 |
unless $last_changed
|
812
|
8 |
0 |
if (ref $last_changed ne 'DateTime')
|
818
|
4 |
4 |
$duration->in_units('days') > $expiry ? :
|