DataObjects/Core_person.php
authorAlan Knowles <alan@roojs.com>
Mon, 15 Oct 2018 05:29:51 +0000 (13:29 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 15 Oct 2018 05:29:51 +0000 (13:29 +0800)
DataObjects/Core_person.php

index 8285350..7581c61 100644 (file)
@@ -265,6 +265,7 @@ class Pman_Core_DataObjects_Core_person extends DB_DataObject
             // in session...
             $a = unserialize($_SESSION[get_class($this)][$sesPrefix .'-auth']);
             $u = DB_DataObject::factory($this->tableName());
             // in session...
             $a = unserialize($_SESSION[get_class($this)][$sesPrefix .'-auth']);
             $u = DB_DataObject::factory($this->tableName());
+            $u->autoJoin();
             if ($a->id && $u->get($a->id)) { //&& strlen($u->passwd)) {
                 if ($u->verifyAuth()) {
                     self::$authUser = $u;
             if ($a->id && $u->get($a->id)) { //&& strlen($u->passwd)) {
                 if ($u->verifyAuth()) {
                     self::$authUser = $u;