Request for Info

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 :slight_smile:

BTW,
I also created api_tokens table to inset the new token,

Thanks!!

fsgl wrote on Saturday, December 13, 2014:

More responses if question composed in plain English & directed to the Help Forum.

If a screenshot had been intended, it’s AWOL.

9d4e1e23bd5b727046a9e3b4b7db57bd8d6ee684 = hashed password for pass.

For any new install, admin & pass should work until credentials are changed.

Login credentials to MySQL are different from OpenEMR & for root/user. See this.