« blib/lib/Lemonldap/NG/Portal/Auth/Proxy.pm
↑ Summary
blib/lib/Lemonldap/NG/Portal/Main/SecondFactor.pm »
| 1 | package Lemonldap::NG::Portal::Lib::_tokenRule; | ||||||||||
| 2 | |||||||||||
| 3 | 329 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 329 | ▶ | use Mouse; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 329 | our $VERSION = '2.0.12'; | |||||||||
| 7 | |||||||||||
| 8 | has ottRule => ( | ||||||||||
| 9 | is => 'rw', | ||||||||||
| 10 | lazy => 1, | ||||||||||
| 11 | 111 | ▶ | default => sub { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
| |||||||||||
| 12 | 111 | my $rule = $_[0]->conf->{requireToken}; | |||||||||
| 13 | 111 | my $hd = $_[0]->p->HANDLER; | |||||||||
| 14 | 111 | $rule = $hd->buildSub( $hd->substitute($rule) ); | |||||||||
| 15 | 111 | ▶ | unless ($rule) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 16 | 0 | $_[0]->logger->error( | |||||||||
| 17 | 'Unable to compile "requireToken" rule => Forcing token'); | ||||||||||
| 18 | 0 | ▶ | $rule = sub { 1 }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 19 | } | ||||||||||
| 20 | 111 | return $rule; | |||||||||
| 21 | } | ||||||||||
| 22 | 329 | ); | |||||||||
| 23 | |||||||||||
| 24 | 0 | ▶ | sub init { | ||||||||
|
Subroutine
init: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 25 | 0 | return 1; | |||||||||
| 26 | } | ||||||||||
| 27 | |||||||||||
| 28 | 329 | 1; | |||||||||