Browse Source

oubli maj du MJ

garthh 6 days ago
parent
commit
db7ad8ee92
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/Security/KeycloakAuthenticator.php

+ 1 - 0
src/Security/KeycloakAuthenticator.php

@@ -94,6 +94,7 @@ class KeycloakAuthenticator extends AbstractAuthenticator
                         $this->em->persist($gamemaster);    
                     } else {
                         // Mettre à jour le profil MJ
+                        $gamemaster = $user->getLinkToGamemaster();
                         $gamemaster->setFirstName($user->getFirstName());
                         $gamemaster->setLastName($user->getLastName());
                         $gamemaster->setPreferedName($data['nickname']);