diff --git a/user/models/YumUser.php b/user/models/YumUser.php index 14945c7..065c0c3 100644 --- a/user/models/YumUser.php +++ b/user/models/YumUser.php @@ -569,7 +569,7 @@ public function getActivationUrl() public function isPasswordExpired() { - $distance = Yum::module('user')->password_expiration_time * 60 * 60; + $distance = Yum::module('user')->password_expiration_time * 60 * 60 * 24; return $this->lastpasswordchange - $distance > time(); }