mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
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:
parent
edbcfbd61f
commit
947ab40bf2
3 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
$mform->addElement('text', 'city', get_string('city'), 'maxlength="120" size="21"');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue