Add authenticated apps output to readSessionData()
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 28 Jan 2010 22:13:38 +0000 (15:13 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 28 Jan 2010 22:13:38 +0000 (15:13 -0700)
framework/Auth/lib/Horde/Auth.php

index 70cae63..f90b084 100644 (file)
@@ -943,7 +943,7 @@ class Horde_Auth
      *
      * @return array  An array of the user's sesion information if
      *                authenticated or false.  The following information is
-     *                returned: userid, timestamp, remoteAddr, browser.
+     *                returned: userid, timestamp, remoteAddr, browser, apps.
      */
     static public function readSessionData($session_data)
     {
@@ -962,6 +962,7 @@ class Horde_Auth
                 return empty($data)
                     ? false
                     : array(
+                        'apps' => empty($data['app']) ? array('horde') : array_keys($data['app']),
                         'browser' => $data['browser'],
                         'remoteAddr' => $data['remoteAddr'],
                         'timestamp' => $data['timestamp'],