Login with API with username/password in URL fails
Posted: Fri Aug 02, 2024 6:52 am
Hello, I am trying to access my project with rest api but cannot login it says when I call this:
http://<my-ip>/agro-met/api/login?username=agromet_admin&password=<mypass>
{
"statusCode": 200,
"error": {
"class": "text-danger",
"type": "Error",
"description": "C:\\xampp_81\\htdocs\\agro-met\\src\\phpfn.php(1843): PHPMaker2024\\agro_met\\FindUserByUserName(): Argument #1 ($username) must be of type string, null given, called in C:\\xampp_81\\htdocs\\agro-met\\src\\AdvancedSecurity.php on line 655"
}
}
tried the sample project endpoint https://demo.hkvstore.com/api/list/cars and shows the data then
tried the same login with the sample project with same results:
https://demo.hkvstore.com/api/login?username=admin&password=master
thanks for any help