Skip to content

Commit

Permalink
Merge pull request #375 from dotkernel/issue-374
Browse files Browse the repository at this point in the history
updated anonimization
  • Loading branch information
arhimede authored Dec 18, 2024
2 parents 50879cf + 5fe9517 commit 9ab2885
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions config/autoload/local.php.dist
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ $databases = [
];

return [
'application' => [
'application' => [
'name' => 'DotKernel API',
'url' => $baseUrl,
'versioning' => [
'documentation_url' => 'https://docs.dotkernel.org/api-documentation/v5/core-features/versioning',
],
],
'authentication' => [
'authentication' => [
'private_key' => [
'key_or_path' => getcwd() . '/data/oauth/private.key',
'key_permissions_check' => false,
Expand All @@ -45,18 +45,19 @@ return [
'message' => 'Invalid credentials.',
],
],
'databases' => $databases,
'doctrine' => [
'databases' => $databases,
'doctrine' => [
'connection' => [
'orm_default' => [
'params' => $databases['default'],
],
],
],
'uploads' => [
'uploads' => [
'user' => [
'url' => $baseUrl . '/uploads/user',
'path' => realpath(__DIR__ . '/../../public/uploads/user'),
],
],
'userAnonymizeAppend' => '',
];
2 changes: 1 addition & 1 deletion src/User/src/Service/UserService.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function anonymizeUser(User $user): User
$placeholder = $this->getAnonymousPlaceholder();

$user
->setIdentity($placeholder)
->setIdentity($placeholder . $this->config['userAnonymizeAppend'])
->getDetail()
->setFirstName($placeholder)
->setLastName($placeholder)
Expand Down

0 comments on commit 9ab2885

Please sign in to comment.