]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/OpenID/User_openid.php
Regression fix for Recaptcha on SSL registration page; their API is served on a diffe...
[quix0rs-gnu-social.git] / plugins / OpenID / User_openid.php
index 801b49eccdcd612b24a891cd4ca2392e7dcfc961..1beff9ea304afebbeeec5c1391137ae0c802c2df 100644 (file)
@@ -39,9 +39,26 @@ class User_openid extends Memcached_DataObject
                      );
     }
 
+    /**
+     * List primary and unique keys in this table.
+     * Unique keys used for lookup *MUST* be listed to ensure proper caching.
+     */
     function keys()
     {
-        return array('canonical' => 'K', 'display' => 'U');
+        return array_keys($this->keyTypes());
+    }
+
+    function keyTypes()
+    {
+        return array('canonical' => 'K', 'display' => 'U', 'user_id' => 'U');
+    }
+
+    /**
+     * No sequence keys in this table.
+     */
+    function sequenceKey()
+    {
+        return array(false, false, false);
     }
 
     Static function hasOpenID($user_id)