It’s possible. My solution implements a User model post_save signal to call
the Allauth Password reset view which will send the user the email. The first
thing to consider is to make the user email address mandatory in the admin
user create form (as explained
here). And then use this pre:
from allauth.account.views import PasswordResetViewfrom django.conf import settingsfrom django.dispatch import receiverfrom django.http import HttpRequestfrom django.middleware.csrf import get_token@receiver(models.signals.post_save, sender=settings.AUTH_USER_MODEL)def send_reset_password_email(sender, instance, created, **kwargs): if created: # First create a post request to pass to the view request = HttpRequest() request.method = 'POST' # add the absolute url to be be included in email if settings.DEBUG: request.meta['HTTP_HOST'] = '127.0.0.1:8000' else: request.meta['HTTP_HOST'] = 'www.mysite.com' # pass the post form data request.POST = { 'email': instance.email, 'csrfmiddlewaretoken': get_token(HttpRequest()) } PasswordResetView.as_view()(request) # email will be sent!


