MDL-9180 Change password screen doesn't show the username like it should; merged from MOODLE_18_STABLE

This commit is contained in:
skodak 2007-04-02 18:03:13 +00:00
parent 90a32fd5e6
commit fdf562fb3c

View File

@ -12,7 +12,7 @@ class login_change_password_form extends moodleform {
$mform->addElement('header', '', get_string('changepassword'), '');
// visible elements
$mform->addElement('static', 'username', get_string('username'));
$mform->addElement('static', 'username', get_string('username'), $USER->username);
$mform->addElement('password', 'password', get_string('oldpassword'));
$mform->addRule('password', get_string('required'), 'required', null, 'client');