The two factor authentication is setup by default for your production environments in the cloud portal. To activate goto your project, select deployement, select your production environment details fro the list of nodes. The press view current log (e.g.) and the dialog for two factor authentication should show up, and then just follow the steps. If it doesn't show up I suggest contacting Mendix support.