Permalink
Browse files

MDL-21068 do not show admin usernames in cron logs

  • Loading branch information...
1 parent 311956c commit 4bbeff335774ffcc75c99e99e3923626c9445bb3 @skodak skodak committed Mar 18, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/moodlelib.php
View
@@ -5755,8 +5755,8 @@ function notify_login_failures() {
$message .= get_string('notifyloginfailuresmessage','',$log)."\n";
}
$message .= "\n\n".get_string('notifyloginfailuresmessageend','',$CFG->wwwroot)."\n\n";
+ mtrace('Emailing admins about '. count($logs) .' failed login attempts');
foreach ($recip as $admin) {
- mtrace('Emailing '. $admin->username .' about '. count($logs) .' failed login attempts');
email_to_user($admin,get_admin(),$subject,$message);
}
$conf = new object();

0 comments on commit 4bbeff3

Please sign in to comment.