Written using actix-web.
/: Shows a form with action =
/register which a user can register for
an account with an invitation code + a link to
/login. If user already
logged in instead shows a form in which they can create an invite code
if they have any remaining. Admin(s) can invite an unlimited number of
people. Optional argument:
If user has logged in and
invite is set to
A new invitation code is generated and returned back to user in the panel.
/login: A login form which redirects user to
/ if username/password
was correct. Optional arguments:
/register: Arguments are
Registers a new user if
invite_code is valid and adds
username of the user who has invited this user to LMDB database.
invites: key = the one who invited & value = the one who accepted invite.