Confirming New User

From DreamFactory
Jump to: navigation, search
DreamFactoryTutorialsConfirming New User
Line 1: Line 1:
 +
When a new user is created, the system can send them an invite email that contains a confirmation URL and confirmation code.  When they click the link in the email a form is presented that requests the following info in order to confirm them as a new user. DreamFactory normally handles all of this for you, but you can use the API below to implement the same functionality in your own app.
 +
 
==== API Endpoint ====
 
==== API Endpoint ====
  

Revision as of 14:43, 18 July 2016

When a new user is created, the system can send them an invite email that contains a confirmation URL and confirmation code. When they click the link in the email a form is presented that requests the following info in order to confirm them as a new user. DreamFactory normally handles all of this for you, but you can use the API below to implement the same functionality in your own app.

API Endpoint

POST https://{url}/api/v2/user/password

Request body:

{
  "code": "confirm_code"
  "email": "user_email",
  "new_password": "password",
  "verify_password": "password"
}

Example - Confirming New User

  • Request body:
{
  "code": "abc123"
  "email": "[email protected]",
  "new_password": "secret",
  "verify_password": "secret"
}
  • Request URL:
POST https://foo.com/api/v2/user/password