feat: added function to parse user object
This commit is contained in:
parent
46114a5920
commit
d78e956612
|
@ -39,15 +39,16 @@ class V06 extends Filter {
|
|||
private function parseUser(array $content){
|
||||
$parsedContent = [];
|
||||
|
||||
$parsedContent['$id'] = $content['$id'];
|
||||
$parsedContent['registration'] = $content['registration'];
|
||||
$parsedContent['name'] = $content['name'];
|
||||
$parsedContent['email'] = $content['email'];
|
||||
$parsedContent['$id'] = $content['$id'] ?? '';
|
||||
$parsedContent['registration'] = $content['registration'] ?? '';
|
||||
$parsedContent['name'] = $content['name'] ?? '';
|
||||
$parsedContent['email'] = $content['email'] ?? '';
|
||||
|
||||
foreach (Config::getParam('providers') as $key => $provider) {
|
||||
if (!$provider['enabled']) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$parsedContent['oauth2'.ucfirst($key)] = '';
|
||||
$parsedContent['oauth2'.ucfirst($key).'AccessToken'] = '';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue