Merge branch 'MDL-64383-master' of git://github.com/damyon/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2019-06-17 23:02:41 +02:00
commit 0307a98545

View File

@ -99,6 +99,7 @@ class user_editadvanced_form extends moodleform {
$purpose = user_edit_map_field_purpose($userid, 'username');
$mform->addElement('text', 'username', get_string('username'), 'size="20"' . $purpose);
$mform->addRule('username', get_string('required'), 'required', null, 'client');
$mform->addHelpButton('username', 'username', 'auth');
$mform->setType('username', PARAM_RAW);