Skip to content

Commit 6e75a72

Browse files
committed
fix
Signed-off-by: alexmerlin <alex.merlin.1985@gmail.com>
1 parent 00b4ff8 commit 6e75a72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Admin/src/Adapter/AuthenticationAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ public function authenticate(): Result
7979
$identityClass = $repository->findOneBy([
8080
$this->config['orm_default']['identity_property'] => $this->getIdentity(),
8181
]);
82-
$this->entityManager->refresh($identityClass);
8382

8483
if (null === $identityClass) {
8584
return new Result(
@@ -88,6 +87,7 @@ public function authenticate(): Result
8887
[$this->config['orm_default']['messages']['not_found']]
8988
);
9089
}
90+
$this->entityManager->refresh($identityClass);
9191

9292
$getCredential = "get" . ucfirst($this->config['orm_default']['credential_property']);
9393

0 commit comments

Comments
 (0)