mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 20:53:53 +01:00
Single more concise string for login error notification emails
This commit is contained in:
parent
2f565a77a3
commit
780dd11cfb
@ -716,8 +716,7 @@ $string['notenrolled'] = '$a is not enrolled in this course.';
|
||||
$string['noteuserschangednonetocourse'] = 'Note: course users need to be restored when restoring user data. This setting has been changed for you.';
|
||||
$string['notifyloginfailuressubject'] = '$a :: Failed logins notification';
|
||||
$string['notifyloginfailuresmessagestart'] = 'Here is a list of failed login attempts at $a since you were last notified ';
|
||||
$string['notifyloginfailuresmessagefromip'] = ' from IP address ';
|
||||
$string['notifyloginfailuresmessagewithuser'] = ' with username ';
|
||||
$string['notifyloginfailuresmessage'] = '$a->time, IP: $a->ip, User: $a->info';
|
||||
$string['notifyloginfailuresmessageend'] = 'You can view these logs at $a/course/log.php?id=1&chooselog=1&modid=site_errors.';
|
||||
$string['numattempts'] = '$a failed login attempt(s) ';
|
||||
$string['nothingnew'] = 'Nothing new since your last login';
|
||||
|
@ -2550,8 +2550,8 @@ function notify_login_failures() {
|
||||
$message .= get_string('notifyloginfailuresmessagestart','',$CFG->wwwroot)
|
||||
.(($CFG->lastnotifyfailure != 0) ? '('.userdate($CFG->lastnotifyfailure).')' : '')."\n\n";
|
||||
foreach ($logs as $log) {
|
||||
$message .= userdate($log->time) .get_string('notifyloginfailuresmessagefromip').$log->ip
|
||||
.get_string('notifyloginfailuresmessagewithuser').$log->info."\n";
|
||||
$log->time = userdate($log->time);
|
||||
$message .= get_string('notifyloginfailuresmessage','',$log)."\n";
|
||||
}
|
||||
$message .= "\n\n".get_string('notifyloginfailuresmessageend','',$CFG->wwwroot)."\n\n";
|
||||
foreach ($recip as $admin) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user