Merge branch 'MDL-55873-master' of git://github.com/lameze/moodle
This commit is contained in:
@@ -40,7 +40,7 @@ class login_signup_form extends moodleform {
|
||||
|
||||
|
||||
$mform->addElement('text', 'username', get_string('username'), 'maxlength="100" size="12"');
|
||||
$mform->setType('username', core_user::get_property_type('username'));
|
||||
$mform->setType('username', PARAM_RAW);
|
||||
$mform->addRule('username', get_string('missingusername'), 'required', null, 'client');
|
||||
|
||||
if (!empty($CFG->passwordpolicy)){
|
||||
|
||||
@@ -98,7 +98,7 @@ class user_editadvanced_form extends moodleform {
|
||||
|
||||
$mform->addElement('text', 'username', get_string('username'), 'size="20"');
|
||||
$mform->addHelpButton('username', 'username', 'auth');
|
||||
$mform->setType('username', core_user::get_property_type('username'));
|
||||
$mform->setType('username', PARAM_RAW);
|
||||
|
||||
if ($userid !== -1) {
|
||||
$mform->disabledIf('username', 'auth', 'in', $cannotchangeusername);
|
||||
|
||||
Reference in New Issue
Block a user