mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-17 07:49:54 +03:00
Fixed AuthenticateAction not working with only one group of params
This commit is contained in:
parent
7b746f76b0
commit
99d7e6dd7d
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ class AuthenticateAction extends AbstractRestAction
|
|||
public function dispatch(Request $request, Response $response, callable $out = null)
|
||||
{
|
||||
$authData = $request->getParsedBody();
|
||||
if (! isset($authData['apiKey'], $authData['username'], $authData['password'])) {
|
||||
if (! isset($authData['apiKey']) && ! isset($authData['username'], $authData['password'])) {
|
||||
return new JsonResponse([
|
||||
'error' => RestUtils::INVALID_ARGUMENT_ERROR,
|
||||
'message' => $this->translator->translate(
|
||||
|
|
Loading…
Add table
Reference in a new issue