Put that in a file (path.diff):

diff --git a/html/captive-portal/lib/captiveportal/PacketFence/Controller/Activate/Email.pm b/html/captive-portal/lib/captiveportal/PacketFence/Controller/Activate/Email.pm
index 3ac0e491af..55663361e5 100644
--- a/html/captive-portal/lib/captiveportal/PacketFence/Controller/Activate/Email.pm +++ b/html/captive-portal/lib/captiveportal/PacketFence/Controller/Activate/Email.pm
@@ -225,6 +225,8 @@ sub doSponsorRegistration : Private {
         $logger->warn( "No active sponsor source for profile "
               . $profile->getName
         );
+        use Data::Dumper;
+        $logger->warn(Dumper $activation_record);
         $self->showError($c, "No active sponsor source for this Connection Profile.");
     }
 }


Then go in /usr/local/pf and do:

patch -p1 --dry-run < patch.diff

If there is no error do:

patch -p1  < patch.diff

then restart httpd.portal


Regards

Fabrice


Le 18-11-01 à 22 h 22, Eric Koons a écrit :
I attempt to run this from the command line and I get git is an unrecognized option.  Is there something I’m missing?  This is CentOS.

Eric Koons
Sr. Network Engineer | CCNA
Service Electric Cable TV and Communications | www.sectv.com <http://www.sectv.com>
eko...@sectv.com <mailto:eko...@sectv.com>
Office: 610-841-8355
Mobile: 610-533-6834
Fax: 610-797-2445





On Nov 1, 2018, at 10:05 PM, Durand fabrice <fdur...@inverse.ca <mailto:fdur...@inverse.ca>> wrote:

diff --git a/html/captive-portal/lib/captiveportal/PacketFence/Controller/Activate/Email.pm b/html/captive-portal/lib/captiveportal/PacketFence/Controller/Activate/Email.pm
index 3ac0e491af..55663361e5 100644
--- a/html/captive-portal/lib/captiveportal/PacketFence/Controller/Activate/Email.pm +++ b/html/captive-portal/lib/captiveportal/PacketFence/Controller/Activate/Email.pm
@@ -225,6 +225,8 @@ sub doSponsorRegistration : Private {
$logger->warn( "No active sponsor source for profile "
. $profile->getName
);
+ use Data::Dumper;
+ $logger->warn(Dumper $activation_record);
$self->showError($c, "No active sponsor source for this Connection Profile.");
}
 }

_______________________________________________
PacketFence-users mailing list
PacketFence-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to