fix: [behavior:authKeycloak] Correctly check if the user was saved

cli-modification-summary
Sami Mokaddem 2022-10-21 08:59:36 +02:00
parent 96041cc71a
commit c65978f8f2
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ class AuthKeycloakBehavior extends Behavior
foreach ($roles as $role) {
$rolesParsed[$role['name']] = $role['id'];
}
if ($this->createUser($user, $clientId, $rolesParsed)) {
if (!$this->createUser($user, $clientId, $rolesParsed)) {
$logChange = [
'username' => $user['username'],
'individual_id' => $user['individual']['id'],