3 // This is one "supplanter" form that generates
4 // one correct forgot_password.php request in
5 // order to get the mailout for 'restored' users
6 // working automatically without having to
7 // fill the form manually (the user already has
8 // filled the username and it has been detected
9 // as a 'restored' one. Surely, some day this will
10 // be out, with the forgot_password utility being
11 // part of each plugin, but now now. See MDL-20846
12 // for the rationale for this implementation.
14 require_once $CFG->libdir
.'/formslib.php';
16 class login_forgot_password_form
extends moodleform
{
18 function definition() {
19 $mform =& $this->_form
;
21 $username = $this->_customdata
['username'];
23 $mform->addElement('hidden', 'username', $username);
24 $mform->setType('username', PARAM_RAW
);
26 $this->add_action_buttons(false, get_string('continue'));