@Reinaldo Crespo Please follow the below steps :
1) Go to Office 365 Admin center
2) Select Active Users
3) Select Multifactor Authentication
4) Select Service Settings and then select Allow on App password.
-----------------------------------------------------------------------------------------------------------------
If the suggested response helped you resolve your issue, please do not forget to accept the response as Answer and "Up-Vote" for the answer that helped you for benefit of the community.