diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-12-24 01:28:07 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-12-24 01:28:07 +0000 |
commit | 34b92d2dd5da0298f9d27a230ca3ffa2da061d36 (patch) | |
tree | ba4a2bf5b17c093a8127317087272e2117fcff45 /lib/class/api.class.php | |
parent | 3d8ff28ac56f30075bd9c485e2ee94f486717e6f (diff) | |
download | ampache-34b92d2dd5da0298f9d27a230ca3ffa2da061d36.tar.gz ampache-34b92d2dd5da0298f9d27a230ca3ffa2da061d36.tar.bz2 ampache-34b92d2dd5da0298f9d27a230ca3ffa2da061d36.zip |
fixed now playing for the API and lack of session extend when using the API
Diffstat (limited to 'lib/class/api.class.php')
-rw-r--r-- | lib/class/api.class.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/class/api.class.php b/lib/class/api.class.php index 06b5fd2e..8e15c136 100644 --- a/lib/class/api.class.php +++ b/lib/class/api.class.php @@ -86,6 +86,10 @@ class Api { $data['type'] = 'api'; $data['value'] = $timestamp; $token = vauth::session_create($data); + // Insert the token into the streamer + $stream = new Stream(); + $stream->user_id = $client->id; + $stream->insert_session($token); debug_event('API','Login Success, passphrase matched','1'); return array('auth'=>$token,'api'=>self::$version); |