summaryrefslogtreecommitdiff
path: root/modules/rest/helpers/rest.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/rest/helpers/rest.php')
-rw-r--r--modules/rest/helpers/rest.php4
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();