Move passwordChangeRequested() to horde/Core
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 8 Jun 2010 19:15:03 +0000 (13:15 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 8 Jun 2010 21:16:21 +0000 (15:16 -0600)
framework/Auth/lib/Horde/Auth.php
framework/Core/lib/Horde/Registry.php
horde/login.php

index 287f857..f58e6d1 100644 (file)
@@ -354,16 +354,6 @@ class Horde_Auth
     }
 
     /**
-     * Return whether the authentication backend requested a password change.
-     *
-     * @return boolean Whether the backend requested a password change.
-     */
-    static public function passwordChangeRequested()
-    {
-        return !empty($_SESSION['horde_auth']['change']);
-    }
-
-    /**
      * Returns the requested credential for the currently logged in user, if
      * present.
      *
index d24f138..2f7dbbe 100644 (file)
@@ -1869,4 +1869,14 @@ class Horde_Registry
         }
     }
 
+    /**
+     * Return whether the authentication backend requested a password change.
+     *
+     * @return boolean Whether the backend requested a password change.
+     */
+    public function passwordChangeRequested()
+    {
+        return !empty($_SESSION['horde_auth']['change']);
+    }
+
 }
index 8678685..163aea7 100644 (file)
@@ -206,7 +206,7 @@ if ($error_reason) {
         }
 
         /* Do password change request on initial login only. */
-        if (!$is_auth && Horde_Auth::passwordChangeRequested()) {
+        if (!$is_auth && $registry->passwordChangeRequested()) {
             $notification->push(_("Your password has expired."), 'horde.message');
 
             if ($auth->hasCapability('update')) {