Skip to content

Commit

Permalink
added some clarifying comments
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed Feb 10, 2025
1 parent 26bec80 commit 03b98d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions application/common/components/Emailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -802,6 +802,7 @@ public function sendPasswordExpiringEmails()
/** @var Password $userPassword */
$userPassword = $user->currentPassword;
if ($userPassword) {
// password expiry still needs to be checked because it can be extended by having an active MFA
$passwordExpiry = strtotime($userPassword->getExpiresOn());
if ($passwordExpiry < strtotime(self::PASSWORD_EXPIRING_CUTOFF)
&& !($passwordExpiry < time())
Expand Down Expand Up @@ -856,6 +857,7 @@ public function sendPasswordExpiredEmails()
/** @var Password $userPassword */
$userPassword = $user->currentPassword;
if ($userPassword) {
// password expiry still needs to be checked because it can be extended by having an active MFA
$passwordExpiry = strtotime($userPassword->getExpiresOn());
if ($passwordExpiry < time()
&& $passwordExpiry > strtotime(self::PASSWORD_EXPIRED_CUTOFF)
Expand Down

0 comments on commit 03b98d3

Please sign in to comment.