Fix logic
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 22 Jul 2009 03:05:28 +0000 (21:05 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 22 Jul 2009 03:05:28 +0000 (21:05 -0600)
framework/Auth/lib/Horde/Auth.php

index 79af2b2..ca3a392 100644 (file)
@@ -626,8 +626,8 @@ class Horde_Auth
      * 'change' - (boolean) Whether to request that the user change their
      *            password.
      *            DEFAULT: No
-     * 'login' - (boolean) Do login tasks?
-     *           DEFAULT: True
+     * 'nologin' - (boolean) Don't do login tasks?
+     *             DEFAULT: Perform login tasks
      * </pre>
      *
      * @return boolean  Whether authentication was successful.
@@ -684,7 +684,7 @@ class Horde_Auth
         $registry->loadPrefs();
         Horde_Nls::setLang($GLOBALS['prefs']->getValue('language'));
 
-        if (empty($options['login'])) {
+        if (!empty($options['nologin'])) {
             return true;
         }