$string['entercourse'] = 'Click to enter this course';
$string['enteremailaddress'] = 'Enter in your email address to reset your
password and have the new password sent to you via email.';
+$string['enteremail']='Enter your email address';
+$string['enterusername']='Enter your username';
$string['entries'] = 'Entries';
$string['error'] = 'Error';
$string['errortoomanylogins'] = 'Sorry, you have exceeded the allowed number of login attempts. Restart your browser.';
$string['passwordconfirmchange'] = 'Confirm password change';
$string['passwordextlink'] = 'The following link has been provided to recover your lost password. This will take you out of Moodle.';
$string['passwordforgotten'] = 'Forgotten password';
-$string['passwordforgotteninstructions'] = 'Your details must first be found in the user database. Please enter <strong>either</strong> your username or your registered email address in the appropriate box. There is no need to enter both.';
+$string['passwordforgotteninstructions'] = 'To reset your password, submit your username or your email address below. If we can find you in the database, an email will be sent to your email address, with instructions how to get access again.';
$string['passwordnohelp'] = 'No help is available to find your lost password. Please contact your Moodle administrator.';
$string['passwordrecovery'] = 'Yes, help me log in';
$string['passwordsdiffer'] = 'These passwords do not match';
$string['screenshot'] = 'Screenshot';
$string['search'] = 'Search';
$string['searchagain'] = 'Search again';
+$string['searchbyusername'] = 'Search by username';
+$string['searchbyemail'] = 'Search by email address';
$string['searchcourses'] = 'Search courses';
$string['searchhelp'] = 'You can search for multiple words at once.<br /><br />word : find any match of this word within the text.<br />+word : only exact matching words will be found.<br />-word : don\'t include results containing this word.';
$string['searchoptions'] = 'Search options';
$mform =& $this->_form;
$renderer =& $mform->defaultRenderer();
- $mform->addElement('header', '', get_string('passwordforgotten'), '');
+ $mform->addElement('header', '', get_string('searchbyusername'), '');
$mform->addElement('text', 'username', get_string('username'));
$mform->setType('username', PARAM_RAW);
+ $submitlabel = get_string('search');
+ $mform->addElement('submit', 'submitbutton', $submitlabel);
+
+ $mform->addElement('header', '', get_string('searchbyemail'), '');
+
$mform->addElement('text', 'email', get_string('email'));
$mform->setType('email', PARAM_RAW);
- $this->add_action_buttons(true, get_string('ok'));
+ $submitlabel = get_string('search');
+ $mform->addElement('submit', 'submitbutton', $submitlabel);
}
function validation($data, $files) {