From: Jan Schneider Date: Mon, 8 Mar 2010 12:47:52 +0000 (+0100) Subject: Admin passwords are stored in an 'admin_password' entry. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=782ac358f192c97fbf55d0c0c5ccf09bf7e5094d;p=horde.git Admin passwords are stored in an 'admin_password' entry. --- diff --git a/imp/lib/Auth.php b/imp/lib/Auth.php index a26f01ef1..fdc4e87c8 100644 --- a/imp/lib/Auth.php +++ b/imp/lib/Auth.php @@ -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]); + } } } }