Commit f3265fa4 authored by Steven Wittens's avatar Steven Wittens

Fix missing user name field on user/register (Arto Bendiken)

parent f39c1e94
......@@ -1243,7 +1243,7 @@ function user_edit_form($uid, $edit, $register = FALSE) {
$form['account'] = array('#type' => 'fieldset',
'#title' => t('Account information'),
);
if (user_access('change own username') || $admin) {
if (user_access('change own username') || $admin || $register) {
$form['account']['name'] = array('#type' => 'textfield',
'#title' => t('Username'),
'#default_value' => $edit['name'],
......
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