* 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;
+ }
// ###################################################################
/**