Decentralized login - Account email validation
When a mentor or an entrepreneur is registering using the corresponding form, the authentication server should send an email containing a link allowing us to validate the email, and therefore activate the user account for proper use with the oidc-provider.
What @sylvain mentionned:
from registration.models import RegistrationProfile
RegistrationProfile.objects.create_inactive_user(new_user=instance, site=site)`
site = Site.objects.get_current()
And use of the django-registration module to handle everything. Documentation available here