Commit be60bfb3 authored by Xavier Guimard's avatar Xavier Guimard

Set OTT timeout to registerTimeout (#595)

parent 22d9ae82
......@@ -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;
}
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment