Admin passwords are stored in an 'admin_password' entry.
authorJan Schneider <jan@horde.org>
Mon, 8 Mar 2010 12:47:52 +0000 (13:47 +0100)
committerJan Schneider <jan@horde.org>
Mon, 8 Mar 2010 12:47:52 +0000 (13:47 +0100)
imp/lib/Auth.php

index a26f01e..fdc4e87 100644 (file)
@@ -404,8 +404,10 @@ class IMP_Auth
 
                     /* 'admin' and 'quota' have password entries - encrypt
                      * these entries in the session if they exist. */
-                    if (isset($ptr[$val]['params']['password'])) {
-                        $sess['imap'][$val]['params']['password'] = Horde_Secret::write(Horde_Secret::getKey('imp'), $ptr[$val]['params']['password']);
+                    foreach (array('password', 'admin_password') as $key) {
+                        if (isset($ptr[$val]['params'][$key])) {
+                            $sess['imap'][$val]['params'][$key] = Horde_Secret::write(Horde_Secret::getKey('imp'), $ptr[$val]['params'][$key]);
+                        }
                     }
                 }
             }