From d91425814acabb57ebd621f6142651265b357853 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 11 Mar 2007 05:37:32 +0000 Subject: [PATCH] r1434: Implement Authentication::_fetchBugdarUserFromAuthUser() ourselves now that we have a field map --- includes/auth/auth.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/includes/auth/auth.php b/includes/auth/auth.php index ea1d3ed..566393f 100644 --- a/includes/auth/auth.php +++ b/includes/auth/auth.php @@ -232,7 +232,15 @@ class Authentication * can be saved in the Bugdar database (and not in the auth one), however * authentication details will NOT be stored in the Bugdar database. */ - function _fetchBugdarUserFromAuthUser() {} + function _fetchBugdarUserFromAuthUser() + { + $user = $this->db->query_first("SELECT * FROM " . TABLE_PREFIX . "user WHERE authid = '" . $this->authUser[ $this->fieldMap['authid'] ] . "'"); + if (!$user) + { + return $this->_createBugdarUser(); + } + return $user; + } // ################################################################### /** -- 2.43.5