Loading module/Oscar/Module.php +5 −1 Original line number Diff line number Diff line Loading @@ -128,8 +128,12 @@ class Module implements ConsoleBannerProviderInterface, ConsoleUsageProviderInte $dbUser = null; if( $e instanceof AdapterChainEvent ){ if( is_string($e->getIdentity()) ){ $dbUser = $this->getEntityManager()->getRepository(Authentification::class)->findOneBy(['username' => $e->getIdentity()]); } else { $dbUser = $this->getEntityManager()->getRepository(Authentification::class)->find($e->getIdentity()); } } elseif ($e instanceof UserAuthenticatedEvent ) { $dbUser = $e->getDbUser(); } else { Loading Loading
module/Oscar/Module.php +5 −1 Original line number Diff line number Diff line Loading @@ -128,8 +128,12 @@ class Module implements ConsoleBannerProviderInterface, ConsoleUsageProviderInte $dbUser = null; if( $e instanceof AdapterChainEvent ){ if( is_string($e->getIdentity()) ){ $dbUser = $this->getEntityManager()->getRepository(Authentification::class)->findOneBy(['username' => $e->getIdentity()]); } else { $dbUser = $this->getEntityManager()->getRepository(Authentification::class)->find($e->getIdentity()); } } elseif ($e instanceof UserAuthenticatedEvent ) { $dbUser = $e->getDbUser(); } else { Loading