From cfb408766f04910466d4479f540c7839cc9424d4 Mon Sep 17 00:00:00 2001 From: Deon George Date: Fri, 28 Jun 2024 05:28:35 +0000 Subject: [PATCH] Fix for bug introduced in 7c23971 that was affecting transfers with binkd nodes --- app/Classes/Node.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Classes/Node.php b/app/Classes/Node.php index 90807af..85abf3a 100644 --- a/app/Classes/Node.php +++ b/app/Classes/Node.php @@ -88,6 +88,10 @@ class Node // If we are originating a session, we'll use that password. if (isset($this->originate)) return $this->originate->pass_session; + + // If we have already authed, we'll use that password. + if ($this->ftns_authed->count()) + return $this->ftns_authed->first()->pass_session; else return ($this->ftns->count() && ($x=$this->ftns->first()->pass_session)) ? $x : '-';