feat: import users` real names from bpn API
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user