diff --git a/src/controllers/VerifyController.php b/src/controllers/VerifyController.php index 2ccfcfa..0e85d22 100644 --- a/src/controllers/VerifyController.php +++ b/src/controllers/VerifyController.php @@ -94,7 +94,7 @@ private function _handleSuccessfulLogin(\craft\elements\User $user): Response $return['csrfTokenValue'] = $this->request->getCsrfToken(); } - return $this->asModelSuccess($user, modelName: 'user', data: $return); + return $this->asSuccess(data: $return); } return $this->redirectToPostedUrl($userSession->getIdentity(), $returnUrl);