From f6103b6884b2e2729a374762dc49c3dba45163ba Mon Sep 17 00:00:00 2001 From: Xavier Guimard Date: Sat, 3 Nov 2012 05:29:55 +0000 Subject: [PATCH] Authen::Captcha must not be automaticaly loaded --- lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Simple.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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