diff options
author | Paul Arthur <paul.arthur@flowerysong.com> | 2013-01-28 16:57:34 -0500 |
---|---|---|
committer | Paul Arthur <paul.arthur@flowerysong.com> | 2013-01-28 16:57:34 -0500 |
commit | 58a3ab692ec3a61c270e5a7b0953b6bb4b48b39c (patch) | |
tree | 5d873a2b6cd93e520fe8ee3e937239a99f1d2709 /lib/class/api.class.php | |
parent | c570bb77947c29a78d9a2ac98e09832be0daac66 (diff) | |
download | ampache-58a3ab692ec3a61c270e5a7b0953b6bb4b48b39c.tar.gz ampache-58a3ab692ec3a61c270e5a7b0953b6bb4b48b39c.tar.bz2 ampache-58a3ab692ec3a61c270e5a7b0953b6bb4b48b39c.zip |
Move sessiony things from vauth into Session
Diffstat (limited to 'lib/class/api.class.php')
-rw-r--r-- | lib/class/api.class.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/class/api.class.php b/lib/class/api.class.php index f289e98b..840e4c07 100644 --- a/lib/class/api.class.php +++ b/lib/class/api.class.php @@ -171,7 +171,7 @@ class Api { $data['username'] = $client->username; $data['type'] = 'api'; $data['value'] = $timestamp; - $token = vauth::session_create($data); + $token = Session::create($data); // Insert the token into the streamer Stream::insert_session($token,$client->id); @@ -236,8 +236,8 @@ class Api { $xmldata = array('server'=>Config::get('version'),'version'=>Api::$version,'compatible'=>'350001'); // Check and see if we should extend the api sessions (done if valid sess is passed) - if (vauth::session_exists('api', $input['auth'])) { - vauth::session_extend($input['auth']); + if (Session::exists('api', $input['auth'])) { + Session::extend($input['auth']); $xmldata = array_merge(array('session_expire'=>date("c",time()+Config::get('session_length')-60)),$xmldata); } |