diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Simple.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Simple.pm index e8856292c..df27f10cc 100644 --- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Simple.pm +++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Simple.pm @@ -12,7 +12,6 @@ use Exporter 'import'; use warnings; use MIME::Base64; -use Authen::Captcha; use Lemonldap::NG::Common::CGI; use CGI::Cookie; use POSIX qw(strftime); @@ -766,6 +765,8 @@ sub buildHiddenForm { # init captcha module and generate captcha # @return nothing sub initCaptcha { + require Authen::Captcha; + my $self = shift; # Store captcha data