diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-03-30 13:53:14 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-03-30 13:53:14 -0700 |
commit | 59b6cd30e621ffeba55f23012e3ede42a4905e78 (patch) | |
tree | 97b78844e8b7db3f82f4e14b350a3ad32436d442 /modules/rest/helpers/rest.php | |
parent | 7f175ea87e9567817d34729dec83f7f36509b894 (diff) |
Rename "user_access_tokens" table to "user_access_keys" as step 1 of a
multi step process to refer to REST access keys as "access_key"
everywhere. Bump the rest module to version 2.
Diffstat (limited to 'modules/rest/helpers/rest.php')
-rw-r--r-- | modules/rest/helpers/rest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/rest/helpers/rest.php b/modules/rest/helpers/rest.php index 7440350f..e87ee91c 100644 --- a/modules/rest/helpers/rest.php +++ b/modules/rest/helpers/rest.php @@ -42,7 +42,7 @@ class rest_Core { throw new Rest_Exception("Forbidden", 403); } - $key = ORM::factory("user_access_token") + $key = ORM::factory("user_access_key") ->where("access_key", "=", $access_token) ->find(); @@ -59,7 +59,7 @@ class rest_Core { } static function get_access_token($user_id) { - $key = ORM::factory("user_access_token") + $key = ORM::factory("user_access_key") ->where("user_id", "=", $user_id) ->find(); |