}
/**
- * 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.
*
}
}
+ /**
+ * 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']);
+ }
+
}
}
/* 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')) {