On starting the app, the executive is shown the registration page.
The executive needs to enter his/her name and email address.
The name must be entered in English and Latin characters. Languages in non-Roman script such as Hindi are not allowed in the first version. The minimum length of the name is 2 and the maximum length is 64.
The email address is usually a corporate one and is not usually GMail, MSN or AOL. It is most likely based on the domain of the company and is powered by Microsoft Office 365 or Google for Work. However, no single sign-on with such services is provided for in the first version.
After entering the name and email address, the executive submits the form.
The web app communicates with the server
API to register the new user.
The server processes the request and returns a response to the app.
The response can be a failure. The registration was unsuccessful for some reason and the server rejects the registration along with a reason. This reason is shown by the web app to the executive on the registration page itself.
OR
The response is a success.
The server has created a new executive in its database.
A new token called the confirmation token has been generated for this executive. This token will be used during the confirmation step. The token will be part of the
URL inside the email which is sent to the user.
The server has mailed the executive a registration confirmation email with a confirmation
URL. This
URL contains the token described in the previous step.
On the web app, the executive is taken to a page where he/she is asked to check his/her email address for the confirmation email. No further action is possible on this screen.
Assuming success in the previous step, the executive has received the confirmation email for his/her registration. The executive clicks on the confirmation link inside the email.
When the confirmation
URL with the token is hit, the server verifies that the token is valid.
An invalid token leads to failure and the executive is told to check if the
URL in the browser matches the one in the confirmation mail exactly and that no tampering was done by mistake.
The confirmation token is immediately discarded and a new provisional session token is created for the next step.
Assuming success in the confirmation step, The server returns the provisional session token to the browser. This token identifies the newly registered and confirmed user.
The executive is taken to a page where he/she will choose a new password. The page has two text inputs, one for the password and another to repeat the password.
The password can have any character available on an English keyboard layout. The minimum length of the password must be 6 and the maximum length 16.
The password in the two input boxes must be the same.
The executive submits the form and the password is sent to the server. Along with the password, the provisional session token is also sent to the server to help the server identify whose password is being set.
On receiving the password, the server does the following
Saves the password in the record for the user. The password is stored in an encrypted form.
Immediately discards the provisional session token.
The executive is then taken to the login page where he/she can login to use the services of Freespace as a registed user.