I am using a Custom user model and so far I have been able to hook it into the allauth package extending the "SignupForm".
Everything seems to work fine because I sign up and the information about the new account is in the DB (user table and account_emailaddress table) but the email is not sent.
here is what my signup form looks like
forms.py
class StudentSignUpForm(SignupForm):
@transaction.atomic
def save(self, request):
user = super(StudentSignUpForm, self).save(request)
user.is_student = True
user.save()
student = StudentProfile.objects.create(user=user)
return user
views.py
def student_profile_view(request):
if request.method == 'POST':
user_form = StudentSignUpForm(request.POST, prefix='UF')
if user_form.is_valid():
user_form.save(request)
return redirect('/')
else:
user_form = StudentSignUpForm(prefix='UF')
return render(request, 'registration/student-profile.html', {'user_form': user_form,})
This works for creating the Custom User as well as creating the user under All auth, the registered email address shows in the "/admin/" under accounts/emails_address but no confirmation emails are being sent to newly registered users.
How do I fix this?? Any ideas??