RVRNEXT-2 token endpoint should be POST
rvr-nextgen/pipeline/pr-master This commit looks good

This commit is contained in:
bence committed 2023-04-08 19:37:05 +02:00
1 parent 74d0b24f5f
commit 1200489186
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -89,7 +89,7 @@ class OAuthLoginController
{
$oAuthTokenRepository = new OAuthTokenRepository();
$userRepository = new UserRepository();
$token = $oAuthTokenRepository->getByCode($this->request->query('code'));
$token = $oAuthTokenRepository->getByCode($this->request->post('code'));
if ($token === null || $token->getExpiresDate() < new DateTime()) {
return new JsonContent([