We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fedb84 commit 5f249b5Copy full SHA for 5f249b5
src/Authentication/AuthenticationService.php
@@ -149,7 +149,10 @@ public function authenticate(ServerRequestInterface $request): ResultInterface
149
$result = $authenticator->authenticate($request);
150
if ($result->isValid()) {
151
$skipTwoFactorVerify = $authenticator->getConfig('skipTwoFactorVerify');
152
- $userData = $result->getData()->toArray();
+ $userData = $result->getData();
153
+ if ($userData instanceof EntityInterface) {
154
+ $userData = $userData->toArray();
155
+ }
156
$webauthn2faChecker = $this->getWebauthn2fAuthenticationChecker();
157
if ($skipTwoFactorVerify !== true && $webauthn2faChecker->isRequired($userData)) {
158
return $this->proceedToWebauthn2fa($request, $result);
0 commit comments