frontend
    Preparing search index...
    • Creates a new User entry in the database. Accounts can only be created for existing Student or Advisor entries in the database. Will return unsuccessful if the username is taken, if there is no person with an equivalent academic ID in the database, or if there is already an account associated with that person.

      Parameters

      • username: string

        Username of the new account.

      • password: string

        User's password, to be salted and hashed before entry.

      • account_type: AccountType

        Type of account. Determines privileges and which table to check.

      • person_id: string

        Academic ID of the person to be found in the database (In the Students/Advisors tables).

      Returns Promise<CreationResult>

      An object detailing the result of the creation attempt.

      Sean Collins, Luca Silver