Fixed an error in the remote user autocreation
It was impossible to add tags to the autocreated user (cherry picked from commit eeb9b6e1773cb08883f982543796175b3143e839)
This commit is contained in:
parent
9fdc096a80
commit
c4a52bad27
|
@ -272,7 +272,7 @@ function process_user_login_remote ($login, $pass, $api = false) {
|
|||
return false;
|
||||
}
|
||||
}
|
||||
else{
|
||||
else {
|
||||
// Create the user in the local database
|
||||
if (create_user ($login, $pass,
|
||||
array ('fullname' => $login,
|
||||
|
@ -281,9 +281,8 @@ function process_user_login_remote ($login, $pass, $api = false) {
|
|||
$config["auth_error"] = __("User not found in database or incorrect password");
|
||||
return false;
|
||||
}
|
||||
profile_create_user_profile ($login,
|
||||
$config['default_remote_profile'],
|
||||
$config['default_remote_group']);
|
||||
profile_create_user_profile ($login, $config['default_remote_profile'],
|
||||
$config['default_remote_group'], false, $config['default_assign_tags']);
|
||||
}
|
||||
|
||||
return $login;
|
||||
|
|
Loading…
Reference in New Issue