django-userprofiles icon indicating copy to clipboard operation
django-userprofiles copied to clipboard

Allow disabling registration with a setting

Open spacedman opened this issue 11 years ago • 2 comments

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..

spacedman avatar Jun 02 '13 09:06 spacedman

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 :)

stephrdev avatar Jun 16 '13 11:06 stephrdev

This could possibly be done with django-waffle.

robertlagrant avatar Aug 01 '14 13:08 robertlagrant