diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-06-18 20:43:14 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-06-18 20:43:14 -0700 |
commit | 9b788674275c843947d44934a50dd395b515737a (patch) | |
tree | 28cf8c7e81935a3dfc311a5e1bdc916fa3471943 /modules/rest/controllers | |
parent | 295a42e0f1d5bf5ba1a6a11fe7e222da59dae40b (diff) |
Simplify rest::get_access_key($user) to rest::access_key() that
returns just the access key string for the active user. That's how we
use the API, so keep it simple.
Diffstat (limited to 'modules/rest/controllers')
-rw-r--r-- | modules/rest/controllers/rest.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/rest/controllers/rest.php b/modules/rest/controllers/rest.php index acc4a7df..ccccc762 100644 --- a/modules/rest/controllers/rest.php +++ b/modules/rest/controllers/rest.php @@ -34,8 +34,7 @@ class Rest_Controller extends Controller { auth::login($user); - $key = rest::get_access_key($user->id); - rest::reply($key->access_key); + rest::reply(rest::access_key()); } public function __call($function, $args) { |