From c237f1830772a5a314af2ec00f423a96148f0e2e Mon Sep 17 00:00:00 2001 From: Guillaume Rousse <guillaume.rousse@renater.fr> Date: Mon, 3 Sep 2018 15:44:36 +0200 Subject: [PATCH] no use for dynamic loading of DateTime... ...as it is already loaded by Rose::DB::Object anyway --- lib/AccountManager/App.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/AccountManager/App.pm b/lib/AccountManager/App.pm index b3fc263..b15d19d 100644 --- a/lib/AccountManager/App.pm +++ b/lib/AccountManager/App.pm @@ -5,6 +5,7 @@ use warnings; use CGI::Simple; use CGI::Simple::Cookie; +use DateTime; use English qw(-no_match_vars); use Log::Any::Adapter; use List::MoreUtils qw(uniq); @@ -412,7 +413,6 @@ sub req_complete_challenge { } # compute a new token - eval "require DateTime"; my $validity_period = $self->{configuration}->{service}->{tokens_validity_period}; my $token = AccountManager::Token->new( @@ -536,7 +536,6 @@ sub req_create_accounts { $self->{configuration}->{$entityid}->{account_validity_period} || $self->{configuration}->{service}->{account_validity_period}; - eval "require DateTime"; my $download_token = AccountManager::Token->new( db => $self->{db}, email_address => $email, -- GitLab