| line |
true |
false |
branch |
|
218
|
0 |
14 |
if (not $coderef or ref $coderef ne 'CODE') |
|
223
|
3 |
11 |
unless ($user) |
|
293
|
2 |
3 |
ref $require_role eq 'ARRAY' ? : |
|
298
|
2 |
5 |
unless ($user) |
|
305
|
3 |
2 |
if ($mode eq 'single') { } |
|
|
1 |
1 |
elsif ($mode eq 'any') { } |
|
|
1 |
0 |
elsif ($mode eq 'all') { } |
|
307
|
2 |
4 |
if _smart_match($_, $require_role) |
|
312
|
1 |
1 |
if $role_ok{$_} |
|
317
|
0 |
2 |
unless (user_has_role($role)) |
|
324
|
4 |
1 |
if ($role_match) |
|
346
|
20 |
10 |
if (my $user = session('logged_in_user')) { } |
|
351
|
2 |
18 |
if (my $cached = vars()->{'dpae_user_cache'}{$realm}{$user}) |
|
381
|
0 |
2 |
if (@_ == 2) { } |
|
388
|
0 |
2 |
unless defined $username |
|
393
|
2 |
1 |
if $has_role eq $want_role |
|
413
|
5 |
4 |
unless defined $username |
|
415
|
1 |
8 |
$realm ? : |
|
419
|
1 |
8 |
if (my $cached = vars()->{'dpae_roles_cache'}{$search_realm}{$username}) |
|
422
|
0 |
1 |
wantarray ? : |
|
426
|
0 |
8 |
unless defined $roles |
|
428
|
4 |
4 |
wantarray ? : |
|
459
|
0 |
5 |
$realm ? : |
|
464
|
4 |
4 |
if ($provider->authenticate_user($username, $password)) |
|
466
|
4 |
0 |
wantarray ? : |
|
475
|
1 |
0 |
wantarray ? : |
|
521
|
7 |
0 |
if (not $realm and session()->{'logged_in_user'}) |
|
526
|
32 |
2 |
if exists $realm_provider{$realm} |
|
530
|
0 |
2 |
unless my $realm_settings = $settings->{'realms'}{$realm} |
|
533
|
0 |
2 |
unless my $provider_class = $realm_settings->{'provider'} |
|
536
|
2 |
0 |
unless ($provider_class =~ /::/) |
|
541
|
0 |
2 |
unless ($ok) |
|
563
|
0 |
0 |
unless ($provider->can($method)) |
|
566
|
0 |
0 |
if (defined(my $result = $provider->$method(@args))) |
|
666
|
1 |
0 |
vars()->{'login_failed'} ? : |
|
694
|
4 |
2 |
if (not ref $want) { } |
|
|
2 |
0 |
elsif (ref $want eq 'Regexp') { } |
|
|
0 |
0 |
elsif (ref $want eq 'ARRAY') { } |