db_login()
Parameters
- Token(character varying)
- LoginName(character varying)
- School(integer)
Returns
Description
- This creates a new login session with a user. The token is not validated here, instead it is
assigned to the LoginName in the session table. The school is required and intended to prevent name
conflicts across different login systems. User must be already added to the system, validated, and active.
Errors
- 11 - User does not exist.
- 12 - User is not initialized.
- 13 - User is not active.
Related functions