This was provided by Fortinet support to resolve an error "! HTTP 400" when trying to active from the web UI.
exec fortiguard-log login username@domain.com password