We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff1773b commit 48c68edCopy full SHA for 48c68ed
src/app/code/community/JetRails/TwoFactor/Model/Adminhtml/Notify.php
@@ -61,6 +61,10 @@ public function emailAllAdministrators () {
61
// Load the data helper class and get user instance
62
$data = Mage::helper ("twofactor/data");
63
$user = Mage::getModel ("admin/user")->load ( $roleUser->getUserId () );
64
+ // Do not send email if user is inactive
65
+ if ( !$user->getIsActive () ) {
66
+ continue;
67
+ }
68
// Format timestamp date and time
69
$timestamp = $auth->getLastTimestamp ();
70
$timestampDate = "-";
0 commit comments