django-user-accounts icon indicating copy to clipboard operation
django-user-accounts copied to clipboard

Creating User account in admin does not create EmailAddress

Open martey opened this issue 9 years ago • 1 comments

I am using django-user-accounts 1.2.0.

Steps to reproduce:

  • Use the Django admin to create a django.contrib.auth.models.User
  • An accounts.models.Account is created for the new User
  • An accounts.models.EmailAddress is not created, so tasks like resetting the user's password fail.

This might be the same issue as reported in #72, but I am not certain.

I think creating a new User in the admin should also create an Account and EmailAddress. If not, I think the documentation should be updated to explain why this is not possible.

martey avatar Jan 13 '16 04:01 martey

When you create a user through Django admin, you first off only give it username and password, then the user is created, then you can edit other fields, including email. As the user has no email when it's created, the post_save signal in accounts does not create an EmailAddress model. So this is the same as #72, I think, yes, and the problem still remains.

dracos avatar Mar 10 '17 14:03 dracos