Browse Source

Improve error when incorrect password used.

MOODLE_34_STABLE
Dan Marsden 8 years ago
parent
commit
d54328101d
  1. 2
      attendance.php
  2. 2
      lang/en/attendance.php

2
attendance.php

@ -73,7 +73,7 @@ if ($mform->is_cancelled()) {
$attforsession->studentpassword !== $fromform->studentpassword) {
$url = new moodle_url('/mod/attendance/attendance.php', array('sessid' => $id, 'sesskey' => sesskey()));
redirect($url, get_string('incorrectpassword', 'mod_attendance'));
redirect($url, get_string('incorrectpassword', 'mod_attendance'), null, \core\output\notification::NOTIFY_ERROR);
}
if (!empty($fromform->status)) {

2
lang/en/attendance.php

@ -133,7 +133,7 @@ $string['identifyby'] = 'Identify student by';
$string['includeall'] = 'Select all sessions';
$string['includenottaken'] = 'Include not taken sessions';
$string['includeremarks'] = 'Include remarks';
$string['incorrectpassword'] = 'You have entered an incorrect password';
$string['incorrectpassword'] = 'You have entered an incorrect password and your attendance has not been recorded, please enter the correct password.';
$string['indetail'] = 'In detail...';
$string['invalidsessionenddate'] = 'This date can not be earlier than the session date';
$string['invalidaction'] = 'You must select an action';

Loading…
Cancel
Save