Validates the supplied username and password against the User collection.
If the user has reset_password=True, returns a short-lived password-reset
token (action=reset_password) instead of a full session token. Otherwise
issues a 24-hour session token (action=start_session) and closes any
previously active sessions for the same user.