mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 17:16:00 +03:00
[PR #1726] [MERGED] fix: Use CustomUserAdmin to fix user creation bug #4490
Labels
No labels
expected: maybe someday
expected: next release
expected: release after next
expected: unlikely unless contributed
good first ticket
help wanted
pull-request
scope: all users
scope: windows users
size: easy
size: hard
size: medium
size: medium
status: backlog
status: blocked
status: done
status: idea-phase
status: needs followup
status: wip
status: wontfix
touches: API/CLI/Spec
touches: configuration
touches: data/schema/architecture
touches: dependencies/packaging
touches: docs
touches: js
touches: views/replayers/html/css
why: correctness
why: functionality
why: performance
why: security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ArchiveBox#4490
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ArchiveBox/ArchiveBox/pull/1726
Author: @pirate
Created: 12/29/2025
Status: ✅ Merged
Merged: 12/29/2025
Merged by: @pirate
Base:
dev← Head:claude/issue-1707-20251229-2144📝 Commits (1)
2e1093ffix: Use CustomUserAdmin instead of Django's default UserAdmin to fix user creation bug📊 Changes
2 files changed (+8 additions, -2 deletions)
View changed files
📝
archivebox/core/admin.py(+2 -2)📝
archivebox/core/admin_users.py(+6 -0)📄 Description
Summary
Fixed the bug where users created via the web GUI cannot login.
Root Cause
The issue was in
archivebox/core/admin.pywhich imported and registered Django's defaultUserAdmininstead of the customCustomUserAdminclass. This bypassed all custom admin logic. Additionally,CustomUserAdminwas modifyingfieldsetswithout explicitly preservingadd_fieldsets, which could cause Django to not properly handle the user creation form.Changes
admin.pyto import and registerCustomUserAdminadd_fieldsetsinCustomUserAdminto preserve Django's default user creation behaviorTesting
To verify the fix:
/admin/auth/user/add/)Fixes #1707
Generated with Claude Code
Summary by cubic
Fixed the bug where users created in the admin couldn’t log in. New users are now created with the correct form and password handling.
Written for commit
2e1093f840. Summary will update automatically on new commits.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.