diff options
author | Brion Vibber <brion@pobox.com> | 2010-03-08 13:37:45 -0800 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-03-08 13:37:45 -0800 |
commit | 42463e160d6672f6e5e458a22ddae79b62fa39bf (patch) | |
tree | e0733a6cbb4d2bac34c2a8fc604e32e5363b41f7 /plugins/OpenID | |
parent | ef3991dbbe0acdba2dd7050b99f951ccfe5b8258 (diff) | |
parent | 7e7d88831cf8b3e8876499b86890da2e63b08c97 (diff) |
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into 0.9.x
Diffstat (limited to 'plugins/OpenID')
-rw-r--r-- | plugins/OpenID/User_openid.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/plugins/OpenID/User_openid.php b/plugins/OpenID/User_openid.php index 801b49ecc..5ef05b4c7 100644 --- a/plugins/OpenID/User_openid.php +++ b/plugins/OpenID/User_openid.php @@ -39,9 +39,21 @@ 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('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) |