MDL-9180 Change password screen doesn't show the username like it should

This commit is contained in:
skodak
2007-04-02 18:02:20 +00:00
parent c57aac2fb1
commit 823ea10f96
+1 -1
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');