Skip to content

Backend - White List Model - User Creation #122

@minhngo3818

Description

@minhngo3818

The admin page must be secured and any anonymous users cannot create an account in the normal way. Here is the process of adding a new user account :

  • An admin user who is a board member of the CS club will send an email to a new user,
  • Create a user instance in the whitelist with an email
  • The potential new user fills out the form of registration and submits it.
  • A request from the submission will send back to the server and update the instance.
  • At this point, the information is held until the admin user verifies it.
  • Successful verification will trigger the backend to create a new account based on held information.
  • Remove information from the white list.

Model Name: whitelist-user
Fields:

  • first_name: String
  • last_name: String
  • email: String, required
  • verify: Boolean, default=false
  • creatd_at Date immutable (newly added)

We will use mongoose and MongoDB for this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions