My request is almost similar to this…
I am actually writing a piece of desktop software that is to call a script on my site and that script has to fetch some data from my database but only after validating that the current user is in deed a registered member of my site.
As such, I need my app to call a PHP page that logs the user in by sending the username and password from my app and then NOT displaying a login form at all, just log gin the user in or not and either reporting an error if the login credentials failed or return the result from the further operations, should login succeed.
Basically, I am storing lots of extra stuff in my database and I am linking it to a user via the id in users.db. I want to be able to retrieve that info from an external app that can call PHP files but that doesn’t have any way of displaying HTML content (read: login forms).
Before you ask me also: “Why, if they are not going to be using WordPress?” the answer is simply that I DO in fact allow for all the content management etc to take place via my WP website also, but I want to be able to access the stored data without needing a browser.
So, to recap: How can I log in to my wordpress site and get the current user info filled in without having to go through a form? how to make an eternal app try to log in automatically?
Thanks