inaturalist / INaturalistIOS

iNaturalist iOS app
MIT License
152 stars 50 forks source link

Use error_description when log in fails #640

Closed kueda closed 1 year ago

kueda commented 1 year ago

Currently when we POST /oauth/token.json and we get something other than a 200 response, we show a generic "Incorrect username or password" error, but there are other reasons authentication might fail, like suspension or failure to confirm their email address, so instead of the current message, let's show the error_description in the JSON response.

Follow-up to #631

alexshepard commented 1 year ago

fixed in 242001b