Set OTT timeout to registerTimeout (#595)

This commit is contained in:
Xavier Guimard 2017-01-23 11:34:38 +00:00
parent 22d9ae8296
commit be60bfb378

View File

@ -27,8 +27,11 @@ extends 'Lemonldap::NG::Portal::Main::Plugin',
has ott => (
is => 'rw',
default => sub {
return $_[0]->{p}
->loadModule('Lemonldap::NG::Portal::Lib::OneTimeToken');
my $ott =
$_[0]->{p}->loadModule('Lemonldap::NG::Portal::Lib::OneTimeToken');
$ott->timeout( $_[0]->conf->{registerTimeout} )
if ( $_[0]->conf->{registerTimeout} );
return $ott;
}
);