Abstract address session() details

This commit is contained in:
2024-06-14 15:09:04 +10:00
parent 0304967e80
commit df2873287c
14 changed files with 70 additions and 29 deletions

View File

@@ -86,9 +86,9 @@ class Node
case 'password':
// If we have already authed, we'll use that password.
if ($this->ftns_authed->count())
return $this->ftns_authed->first()->session('sespass');
return $this->ftns_authed->first()->pass_session;
else
return ($this->ftns->count() && ($x=$this->ftns->first()->session('sespass'))) ? $x : '-';
return ($this->ftns->count() && ($x=$this->ftns->first()->pass_session)) ? $x : '-';
// Return how long our session has been connected
case 'session_time':
@@ -194,7 +194,7 @@ class Node
throw new Exception('Already authed');
foreach ($this->ftns as $o) {
if (! $sespass=$o->session('sespass'))
if (! $sespass=$o->pass_session)
continue;
// If we have challenge, then we are doing MD5