JSAPI Tutorial: Login/Site Registration

Level: Beginning

Prerequisite: JSAPI User Authentication

Example: Login/Registration Example

Summary:This tutorial covers the basic login call with a registration form for your website. When you've completed the tutorial, you will have all the information you need to present an integrated registration flow to your users.

Note that all code samples in this document use jQuery, so that's the syntax being used.

Setup

First, authentication needs to be set up as explained in JSAPI User Authentication.

The framework is loaded with the instruction to let the user stay logged in:

Add a web form for registration once the user has authenticated:


You can see this in action or download the example code from example.html.

Example Code