Commit a16be349 authored by Dries's avatar Dries

- Patch #12658 by menesis: when an administrator adds a user, the...

- Patch #12658 by menesis: when an administrator adds a user, the 'authenticated user' role was not assigned to the new user.
parent 1486dc8f
......@@ -1300,7 +1300,7 @@ function user_admin_create($edit = array()) {
if ($edit) {
// Because the admin form doesn't have roles selection they need to be set to validate properly
$edit['roles'] = array(_user_authenticated_id());
$edit['roles'] = array(_user_authenticated_id() => 'authenticated user');
user_module_invoke('validate', $edit, $edit, 'account');
if (!form_get_errors()) {
......
......@@ -1300,7 +1300,7 @@ function user_admin_create($edit = array()) {
if ($edit) {
// Because the admin form doesn't have roles selection they need to be set to validate properly
$edit['roles'] = array(_user_authenticated_id());
$edit['roles'] = array(_user_authenticated_id() => 'authenticated user');
user_module_invoke('validate', $edit, $edit, 'account');
if (!form_get_errors()) {
......
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