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
);
20 $mform->addElement('hidden', 'action', 'find');
21 $mform->setType('action', PARAM_ALPHA
);
23 $this->add_action_buttons(true, get_string('ok'));