mirror of
https://github.com/grocy/grocy.git
synced 2025-08-18 19:37:12 +00:00
Sanitize user input on all API routes (references #996)
This commit is contained in:
@@ -24,7 +24,7 @@ class LoginController extends BaseController
|
||||
|
||||
public function ProcessLogin(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
$postParams = $request->getParsedBody();
|
||||
$postParams = $this->GetParsedAndFilteredRequestBody($request);
|
||||
|
||||
if (isset($postParams['username']) && isset($postParams['password']))
|
||||
{
|
||||
|
Reference in New Issue
Block a user