Branch Coverage

blib/lib/Slovo/Controller/Auth.pm
Criterion Covered Total %
branch 29 46 63.0


line true false branch
18 0 10 if $c->is_user_authenticated
33 1 8 if ($v->csrf_protect->has_error('csrf_token')) { }
0 8 elsif ($v->has_error) { }
51 8 0 if ($c->authenticate($o->{'login_name'}, $o->{'digest'}, $o))
55 1 7 $c->stash('passw_login') ? :
56 1 7 ref $route ? :
71 2 10 unless ($c->is_user_authenticated)
80 0 10 if $c->groups->is_admin($uid)
83 0 10 if ($route =~ /groups|domove$/u)
92 1 9 $e_uid ? :
93 0 1 if ($route =~ /^(show|edit|update|remove)_users$/ux and $e_user and ($e_user->{'created_by'} != $uid and $e_user->{'id'} != $uid))
110 0 0 unless ($c->groups->is_admin($c->user->{'id'}))
133 0 8 unless ($u)
140 1 7 unless ($checksum eq $csrf_digest)
150 1 0 if ($row and $checksum2 eq $csrf_digest)
175 1 0 if $c->is_user_authenticated
182 0 1 unless (defined $row)
199 0 1 unless (defined $row)
215 0 1 unless ($ok)
221 1 0 if ($INC{'Slovo/Task/SendOnboardingEmail.pm'}) { }
237 1 1 if ($c->req->method eq "POST")
242 1 0 if ($INC{'Slovo/Task/SendPasswEmail.pm'})
246 1 0 if (my $user = $c->users->find_where({'email', $in->{'email'}})) { }