[OSM-dev] How to check if a user has entered valid openstreetmap username/password pair using php?

2013-03-12 Thread Sazal Sthapit
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

Re: [OSM-dev] How to check if a user has entered valid openstreetmap username/password pair using php?

2013-03-12 Thread Derick Rethans
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

Re: [OSM-dev] How to check if a user has entered valid openstreetmap username/password pair using php?

2013-03-12 Thread Ken Guest
If you're going to be communicating with the OSM API server directly from PHP I'd recommend Services_OpenStreetMap ( https://pear.php.net/package/Services_OpenStreetMap ). It's fully unit tested and allows for mock requests so you can test your app without hitting the OSM server until you're sure

Re: [OSM-dev] How to check if a user has entered valid openstreetmap username/password pair using php?

2013-03-12 Thread Jonathan Bennett
On 12/03/2013 09:53, Derick Rethans wrote: You should *not* be asking for their username and password WHS in Spades. It's incredibly bad practice, isn't very robust and I for one wouldn't trust any application these days that asked me for plain credentials. J.