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:
Alejandro Gallardo Escobar 2015-08-13 10:41:14 +02:00
parent 9fdc096a80
commit c4a52bad27
1 changed files with 3 additions and 4 deletions

View File

@ -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;