inaturalist / INaturalistIOS

iNaturalist iOS app
MIT License
151 stars 50 forks source link

Handle 201 CREATED response to POST /users.json #631

Closed kueda closed 1 year ago

kueda commented 2 years ago

As a part of the upcoming required email validation, creating a new user account will not be the same thing as authenticating that user, because after the account is created, the user cannot authenticate until they have verified their email address. Because of this, a successful POST /users.json request will respond with a 201 status to indicate the user was created, and a JSON body like

{
  "message": "A message with a confirmation link has been sent to your email address. Please follow the link to activate your account."
}

If POST /users.json includes a locale key in the request body, the message in the response should be localized.

So here are some todos:

alexshepard commented 1 year ago

done in dc1a9a9ef4f9b869f6f1ea83c05f318e2cd1472d