Fixes for Bug MDL-8617 "Implement groupings & course modules..."
[moodle-pu.git] / login / forgot_password_form.php
blobdad611647fa8e1d538ca98efb4a0017b21df88fb
1 <?php //$Id$
3 require_once $CFG->libdir.'/formslib.php';
5 class login_forgot_password_form extends moodleform {
7 function definition() {
8 $mform =& $this->_form;
9 $renderer =& $mform->defaultRenderer();
11 $mform->addElement('header', '', get_string('passwordforgotten'), '');
13 $mform->addElement('text', 'username', get_string('username'));
14 $mform->setType('username', PARAM_RAW);
16 $mform->addElement('text', 'email', get_string('email'));
17 $mform->setType('email', PARAM_RAW);
19 // hidden params
20 $mform->addElement('hidden', 'action', 'find');
21 $mform->setType('action', PARAM_ALPHA);
23 $this->add_action_buttons(true, get_string('ok'));