MDL-46976 user: trim whitespace from input email address
Don't complain about invalid email address, we are a computer, we love the jobs users hate. ref: https://www.youtube.com/watch?v=5tquSbZEP-g
This commit is contained in:
+1
-1
@@ -215,7 +215,7 @@ function useredit_shared_definition(&$mform, $editoroptions = null, $filemanager
|
||||
} else {
|
||||
$mform->addElement('text', 'email', get_string('email'), 'maxlength="100" size="30"');
|
||||
$mform->addRule('email', $strrequired, 'required', null, 'client');
|
||||
$mform->setType('email', PARAM_EMAIL);
|
||||
$mform->setType('email', PARAM_RAW_TRIMMED);
|
||||
}
|
||||
|
||||
$choices = array();
|
||||
|
||||
Reference in New Issue
Block a user