chg: [kc] disabled user capturing

- Cerebrate is now authoritative
pull/101/head
iglocska 2022-05-17 11:00:30 +02:00
parent c6572885a9
commit f513f8ec99
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 4 additions and 2 deletions

View File

@ -66,9 +66,10 @@ class AuthKeycloakBehavior extends Behavior
'name' => $profile_payload[$fields['role_name']],
]
];
$user['user']['individual_id'] = $this->_table->captureIndividual($user);
$user['user']['role_id'] = $this->_table->captureRole($user);
//$user['user']['individual_id'] = $this->_table->captureIndividual($user);
//$user['user']['role_id'] = $this->_table->captureRole($user);
$existingUser = $this->_table->find()->where(['username' => $user['user']['username']])->first();
/*
if (empty($existingUser)) {
$user['user']['password'] = Security::randomString(16);
$existingUser = $this->_table->newEntity($user['user']);
@ -92,6 +93,7 @@ class AuthKeycloakBehavior extends Behavior
}
}
}
*/
return $existingUser;
}