Initialize IMP before authentication.
authorJan Schneider <jan@horde.org>
Mon, 18 Jan 2010 17:07:42 +0000 (18:07 +0100)
committerJan Schneider <jan@horde.org>
Mon, 18 Jan 2010 17:07:42 +0000 (18:07 +0100)
imp/lib/Auth.php

index 8f7b8a5..8defa1d 100644 (file)
@@ -32,6 +32,7 @@ class IMP_Auth
     static public function authenticate($credentials = array())
     {
         // Do 'horde' authentication.
+        Horde_Registry::appInit('imp', array('tz' => true, 'authentication' => false));
         $imp_app = $GLOBALS['registry']->getApiInstance('imp', 'application');
         if ($imp_app->initParams['authentication'] == 'horde') {
             if (Horde_Auth::getAuth()) {