Releases: interface-master/rctrials-webapp
Alpha One
Alpha
First complete and stable release.
Has public pages:
/home
- Homepage promo/about
- Page describing the 3 different ways in which the project can be used/docs
+/assets/apidoc/index.html
- Partial documentation in the form ofapidoc
s for the API/register
- Registration form/login
- Login form/privacy
- Privacy Policy- '/terms` - Terms and Conditions
And private pages:
/dashboard
- Lists the user's trials/new-trial
- Entry form to create a new trial/trial-details/:tid
- Trial details
Refresh Tokens
In this release logic has been added to
- validate existing
access_token
if it is found in the cookies - if the
access_token
has expired, attempt to get a new one using therefresh_token
- handle logged in session and take the user directly to the dashboard
- take the user to the homepage if the session has expired
Registration & Login
This release creates an Angular application with the following features:
registration
Allows users to register with an email, name, role, salt, hash
and sends it to the API
The role is hard-coded to admin
The salt
is randomly generated, and the hash
is built from the password
and the salt
Returns uid
if successful
TODO
Still need to add functionality to send an email to the user to force them to validate their account; currently an account is valid as soon as it's created
Add a CAPTCHA to prevent bots
login
Allows the user to send an email
to receive the salt
Creates a hash
of the password
with the salt
and sends it to the API
If successful, receives an access_token
and refresh_token