Commit 6f0bd949 authored by Dries's avatar Dries

- Patch #43668 by chx: fixed problem with changing usernames.

parent 6aae7ff7
......@@ -1207,9 +1207,6 @@ function _user_edit_validate($uid, &$edit) {
form_set_error('name', t('The name %name has been denied access.', array('%name' => theme('placeholder', $edit['name']))));
}
}
elseif ($edit['name'] != $user->name) {
form_set_error('name', t('You are not allowed to change this username.'));
}
// Validate the e-mail address:
if ($error = user_validate_mail($edit['mail'])) {
......
......@@ -1207,9 +1207,6 @@ function _user_edit_validate($uid, &$edit) {
form_set_error('name', t('The name %name has been denied access.', array('%name' => theme('placeholder', $edit['name']))));
}
}
elseif ($edit['name'] != $user->name) {
form_set_error('name', t('You are not allowed to change this username.'));
}
// Validate the e-mail address:
if ($error = user_validate_mail($edit['mail'])) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment