alexshm wrote on Saturday, December 13, 2014:
Hello,
My name is Alex, and i using your useful code of OPENEMR-API as part of my
academic project (we try to send data from Android to the OPENEMR database
through the API)
I tring to start working with login.php, and put this link in the browser
(of course this is just for check, i understand i have to do it with POST) :
http://localhost/openemr/api/login.php?username=admin&password=pass
When i print “$strQuery” variable i see:
SELECT * FROM users WHERE username=‘admin’ AND
password=‘9d4e1e23bd5b727046a9e3b4b7db57bd8d6ee684’
However, it seems that the user is not authorized (see screen below)
Do i miss something ?
I will appreciate any help to get started
BTW,
I also created api_tokens table to inset the new token,
Thanks!!