Skip to content

Add admin-controlled toggle to disable new user signups - #587

Merged
bpepple merged 1 commit into
masterfrom
disable-signups
Aug 5, 2026
Merged

Add admin-controlled toggle to disable new user signups#587
bpepple merged 1 commit into
masterfrom
disable-signups

Conversation

@bpepple

@bpepple bpepple commented Aug 5, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds a SignupSettings singleton model (editable from Django admin) with a signups_enabled flag and a customizable disabled_message
  • When disabled, /accounts/signup/ renders a friendly "Signups Disabled" page instead of the registration form, for both GET and POST
  • Lets staff close/reopen signups instantly from the admin, with no code deploy or restart — replaces the old approach of commenting out the URL route and hand-editing the navbar template

Motivation

We've been seeing a steady stream of duplicate account creation. Signups have been disabled twice before in this repo by editing code and reverting later, which is easy to forget to undo. This gives us a proper on/off switch.

Duplicate account creation has become common enough that we need a way to close signups without a deploy. Adds a singleton SignupSettings model editable from Django admin; when disabled, /accounts/signup/ shows a friendly message instead of the registration form.
@bpepple bpepple self-assigned this Aug 5, 2026
@bpepple bpepple added the chore Miscellaneous drudgery label Aug 5, 2026
@bpepple
bpepple merged commit c8c9a89 into master Aug 5, 2026
2 checks passed
@bpepple
bpepple deleted the disable-signups branch August 5, 2026 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Miscellaneous drudgery

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant