From 782ac358f192c97fbf55d0c0c5ccf09bf7e5094d Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Mon, 8 Mar 2010 13:47:52 +0100 Subject: [PATCH] Admin passwords are stored in an 'admin_password' entry. --- imp/lib/Auth.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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]); + } } } } -- 2.11.0