Skip to content

Users created via Admin Center never receive password reset emails (missing allauth EmailAddress record) #12733

Closed

Description

@AtlavoxDev

Please verify that this bug has NOT been raised before.

  • I checked and didn't find a similar issue

Describe the bug*

Creating a user through the Admin Center (or Django admin) sets User.email, but does not create a corresponding allauth EmailAddress record. The password reset flow is handled by django-allauth, which looks up users only via the EmailAddress table — so for any admin-created user, requesting a password reset reports "email sent" (the anti-enumeration message) while no email is generated at all. Nothing appears in the outgoing email log (Email Messages), which makes this very hard to diagnose; email itself works fine (test emails send normally).

On my instance, only one user (created via a signup flow long ago) had an EmailAddress record — every user created via the admin since then was silently unable to reset their password.

Steps to Reproduce

  1. Configure working outgoing email; verify with a test email.
  2. As an admin, create a new user via the Admin Center, filling in the email address.
  3. Log out; on the login page use "Reset password" with that user's email address.
  4. The UI reports the email was sent; no email arrives, and no message is recorded in Email Messages.
  5. In Django admin → Accounts → Email addresses, observe the new user has no entry. Manually adding one (verified/primary) makes the reset flow work immediately.

Expected behaviour

Either user creation should create a matching EmailAddress record, or the password reset flow should fall back to User.email when no EmailAddress record exists. A silent no-op behind a success message is the worst of both worlds.

Deployment Method

  • Docker

Version Information

InvenTree 1.3.3 (API 477), Docker production compose stack, debug off.

Please verify if you can reproduce this bug on the demo site.

  • I can reproduce this bug on the demo site.

(Not verifiable on the demo site: reproducing requires working outgoing email + access to the email log. The missing EmailAddress record on admin-created users can be observed there, however.)

Relevant log output

No response

🤖 Filed with Claude Code

Activity

  1. matmair commented on Aug 28, 2026

    @matmair
    Member

    No full version information provided

  2. added
    not enough info
    on Aug 28, 2026
  3. matmair commented on Sep 7, 2026

    @matmair
    Member

    @AtlavoxDev I will not work on this till the template is filled out properly

  4. AtlavoxDev commented on Sep 7, 2026

    @AtlavoxDev
    Author

    Understood. My apologies. I thought Claude was just going to draft, didn't realize it posted it. It's a legit issue I ran into. But I'll review the template and make sure I follow the format next chance I get. Thanks for your patience.

  5. self-assigned this
    on Sep 7, 2026
  6. added a commit that references this issue on Sep 13, 2026
    6b1a3b8
  7. added a commit that references this issue on Sep 14, 2026
    cb1cd5a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

not enough infowarn:slop

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions