From 21c240cb882a483c131a72bd8d119838fbe07ad8 Mon Sep 17 00:00:00 2001 From: Andrew Engelbrecht Date: Tue, 25 Apr 2023 17:53:23 -0400 Subject: [PATCH] adding some debug statments that i've been using --- lib/Auth/Source/FSFDrupalAuth.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/Auth/Source/FSFDrupalAuth.php b/lib/Auth/Source/FSFDrupalAuth.php index 69f60b4..1e80d51 100644 --- a/lib/Auth/Source/FSFDrupalAuth.php +++ b/lib/Auth/Source/FSFDrupalAuth.php @@ -371,6 +371,9 @@ class FSFDrupalAuth extends \SimpleSAML\Module\core\Auth\UserPassBase $eligible = false; + Logger::debug('fsfdrupalauth:'.$this->authId. + ': start date: '.$nomination_process_start_date. " end date: ".$nomination_process_end_date); + $start_date_obj = new \DateTime($nomination_process_start_date); $end_date_obj = new \DateTime($nomination_process_end_date); @@ -416,6 +419,9 @@ class FSFDrupalAuth extends \SimpleSAML\Module\core\Auth\UserPassBase $eligible = false; $total = 0; + Logger::debug('fsfdrupalauth:'.$this->authId. + ': start date: '.$discussion_process_start_date. " end date: ".$discussion_process_end_date); + $start_date_obj = new \DateTime($discussion_process_start_date); $end_date_obj = new \DateTime($discussion_process_end_date); @@ -430,6 +436,9 @@ class FSFDrupalAuth extends \SimpleSAML\Module\core\Auth\UserPassBase } } + Logger::debug('fsfdrupalauth:'.$this->authId. + ': total amount: $'.$total); + if ($total >= $this->discussion_process_donation_amount) { return true; } else { -- 2.25.1