stephrdev / django-userprofiles

BSD 3-Clause "New" or "Revised" License
47 stars 11 forks source link

Allow disabling registration with a setting #18

Open spacedman opened 11 years ago

spacedman commented 11 years ago

Is there a way to disable user self-registration without breaking functionality (password change etc) for existing registered users?

I suspect it can be bodged for my project by overriding the 'register' URL so there's no way to the registration view in userprofiles.views - but a setting would be easier..

stephrdev commented 11 years ago

You could use a custom urls file (copy the existing one and remove the register urls). Additionally you just don't enable the account activation extension. But yes, a setting would be nice and I'll add this within the next release.

If you provide a pull request with the necessary changes this could be done much faster :)

robertlagrant commented 10 years ago

This could possibly be done with django-waffle.