Skip to content

Commit 48c68ed

Browse files
author
Rafael Grigorian
committed
Fixed #12
1 parent ff1773b commit 48c68ed

File tree

1 file changed

+4
-0
lines changed
  • src/app/code/community/JetRails/TwoFactor/Model/Adminhtml

1 file changed

+4
-0
lines changed

src/app/code/community/JetRails/TwoFactor/Model/Adminhtml/Notify.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ public function emailAllAdministrators () {
6161
// Load the data helper class and get user instance
6262
$data = Mage::helper ("twofactor/data");
6363
$user = Mage::getModel ("admin/user")->load ( $roleUser->getUserId () );
64+
// Do not send email if user is inactive
65+
if ( !$user->getIsActive () ) {
66+
continue;
67+
}
6468
// Format timestamp date and time
6569
$timestamp = $auth->getLastTimestamp ();
6670
$timestampDate = "-";

0 commit comments

Comments
 (0)