feat: import users` real names from bpn API

This commit is contained in:
Björn Fromme
2026-08-17 14:24:56 +02:00
parent bf69fcceff
commit 77de1643f0
11 changed files with 96 additions and 7 deletions
@@ -129,7 +129,13 @@ class PersonalDataController extends AbstractController
// Update profile completeness flag on user entity
$isComplete = $this->completenessChecker->isComplete($personalData);
$user->setProfileComplete($isComplete);
$user
->setProfileComplete($isComplete)
// Otherwise a rename here would stay invisible in the backend until the next
// login, which is the only other place the name is synced from BPN.
->setFirstName($personalData->firstName)
->setLastName($personalData->name)
;
$this->entityManager->flush();
$this->addFlash('success', 'Deine persönlichen Daten wurden aktualisiert');