blib/lib/Mojolicious/Plugin/Authentication.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 18 | 27 | 66.6 |
line | l | !l | condition |
---|---|---|---|
34 | 7 | 0 | $args->{'autoload_user'} // 0 |
35 | 0 | 7 | $args->{'session_key'} || 'auth_data' |
36 | 0 | 7 | $args->{'stash_key'} || '__authentication__' |
37 | 0 | 7 | $args->{'current_user_fn'} || 'current_user' |
223 | 2 | 5 | $extradata ||= {} |
238 | 0 | 3 | $extradata ||= {} |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
71 | 0 | 4 | 7 | !$required || $c->is_user_authenticated |
82 | 0 | 1 | 1 | !$required || $c->signature_exists |
189 | 0 | 2 | 24 | $stash->{'no_user'} or defined $stash->{'user'} |
206 | 0 | 2 | 3 | $stash->{'no_user'} || defined $stash->{'user'} |
225 | 1 | 4 | 2 | $extradata->{'auto_validate'} // &$validate_user_cb($c, $user, $pass, $extradata) |