mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-22 08:56:42 -06:00
Fixed AuthenticateAction not working with only one group of params
This commit is contained in:
parent
7b746f76b0
commit
99d7e6dd7d
@ -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…
Reference in New Issue
Block a user