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
|
18 |
10 |
if (my $user = session('logged_in_user')) { } |
373
|
0 |
2 |
if (@_ == 2) { } |
380
|
0 |
2 |
unless defined $username |
385
|
2 |
1 |
if $has_role eq $want_role |
405
|
5 |
4 |
unless defined $username |
407
|
1 |
8 |
$realm ? : |
410
|
0 |
9 |
unless defined $roles |
411
|
4 |
5 |
wantarray ? : |
442
|
0 |
5 |
$realm ? : |
447
|
4 |
4 |
if ($provider->authenticate_user($username, $password)) |
449
|
4 |
0 |
wantarray ? : |
458
|
1 |
0 |
wantarray ? : |
504
|
8 |
27 |
if (not $realm and session()->{'logged_in_user'}) |
509
|
33 |
2 |
if exists $realm_provider{$realm} |
513
|
0 |
2 |
unless my $realm_settings = $$settings{'realms'}{$realm} |
515
|
0 |
2 |
unless my $provider_class = $$realm_settings{'provider'} |
519
|
2 |
0 |
unless ($provider_class =~ /::/) |
524
|
0 |
2 |
unless ($ok) |
546
|
0 |
0 |
unless ($provider->can($method)) |
549
|
0 |
0 |
if (defined(my $result = $provider->$method(@args))) |
648
|
1 |
0 |
vars()->{'login_failed'} ? : |
677
|
4 |
2 |
if (not ref $want) { } |
|
2 |
0 |
elsif (ref $want eq 'Regexp') { } |
|
0 |
0 |
elsif (ref $want eq 'ARRAY') { } |