From 5fbc16770855d89df0b851d9e76b25543d93de00 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Sat, 20 Jun 2020 19:10:13 +0300 Subject: [PATCH] Fix the case when the redirect_uri is null --- api/components/OAuth2/Repositories/ClientRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/components/OAuth2/Repositories/ClientRepository.php b/api/components/OAuth2/Repositories/ClientRepository.php index eeb4bc6..0503aa1 100644 --- a/api/components/OAuth2/Repositories/ClientRepository.php +++ b/api/components/OAuth2/Repositories/ClientRepository.php @@ -16,7 +16,7 @@ class ClientRepository implements ClientRepositoryInterface { return null; } - return new ClientEntity($client->id, $client->name, $client->redirect_uri, (bool)$client->is_trusted); + return new ClientEntity($client->id, $client->name, $client->redirect_uri ?? '', (bool)$client->is_trusted); } public function validateClient($clientId, $clientSecret, $grantType): bool {