Authentication

Logging in, ending a session, and managing account passwords.

Function Description
login Sets an authentication cookie upon receipt of valid auth credentials.
logout Removes the authentication cookie from the client device.
changePassword Allows a user to update their password.
resetPassword Sends a password reset email to the user.