File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 88use Admin \Admin \Entity \AdminIdentity ;
99use Admin \Admin \Entity \AdminRole ;
1010use Doctrine \ORM \EntityManager ;
11+ use Doctrine \ORM \Exception \ORMException ;
1112use Dot \DependencyInjection \Attribute \Inject ;
1213use Exception ;
1314use Laminas \Authentication \Adapter \AdapterInterface ;
@@ -64,6 +65,7 @@ private function getCredential(): string
6465
6566 /**
6667 * @throws Exception
68+ * @throws ORMException
6769 */
6870 public function authenticate (): Result
6971 {
@@ -85,6 +87,7 @@ public function authenticate(): Result
8587 [$ this ->config ['orm_default ' ]['messages ' ]['not_found ' ]]
8688 );
8789 }
90+ $ this ->entityManager ->refresh ($ identityClass );
8891
8992 $ getCredential = "get " . ucfirst ($ this ->config ['orm_default ' ]['credential_property ' ]);
9093
You can’t perform that action at this time.
0 commit comments