[OSM-dev] How to check if a user has entered valid openstreetmap username/password pair using php?
osm at derickrethans.nl
Tue Mar 12 09:53:02 UTC 2013
On Tue, 12 Mar 2013, Sazal Sthapit wrote:
> I am writing an app which allows users to submit values to pre-defined
> keys. But in order to make these edits by the user's own name, I first need
> to check if s/he has entered valid username/password combination. And I
> want to check it against the OSM user database. What is the easiest way to
> do it? And I'm using php for that
You should *not* be asking for their username and password, but instead
use the OAuth service: http://wiki.openstreetmap.org/wiki/Oauth
>From PHP, you would use the oauth pecl extension
(http://pecl.php.net/package/oauth) to do the necessary work.
More information about the dev