MDL-52831 users: Automatically strip whitespace from name fields
authorDavid Mudrák <david@moodle.com>
Tue, 19 Jan 2016 16:31:55 +0000 (17:31 +0100)
committerDavid Mudrák <david@moodle.com>
Tue, 19 Jan 2016 20:40:45 +0000 (21:40 +0100)
commite9c27d1e0eef136216e5559bc2de425583e5156f
treef76bf2c135e53fcad4f0e2d9897e6411df05c394
parentef343c32998a2827de2e883a58d5bcc7b3730b3f
MDL-52831 users: Automatically strip whitespace from name fields

This change prevents from registering and/or saving the profile of a
user with the whitespace instead of the required name.

Additionally, there is accessibility improvement for better error labels
in case of missing values (copied over from signup_form).
login/signup_form.php
user/edit_form.php
user/editadvanced_form.php
user/editlib.php
user/tests/behat/name_fields.feature [new file with mode: 0644]