Skip to content

Commit

Permalink
fix: Exposure of Sensitive Attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Roel van Hintum committed Feb 8, 2024
1 parent 282469f commit eb93bcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/VerifyController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit eb93bcb

Please # to comment.