Add a createuser callback for cauth django plugin
commit7ed70f10677714abf12ceb84f3d91e985b6c29cd
authorMagnus Hagander <magnus@hagander.net>
Sat, 13 Jan 2018 17:14:13 +0000 (13 18:14 +0100)
committerMagnus Hagander <magnus@hagander.net>
Sat, 13 Jan 2018 17:14:13 +0000 (13 18:14 +0100)
treee7d3686243297084b41b6e23524c8bdb896ccf44
parent79659ae1dc086075b9362ebe0c63001b451445fc
Add a createuser callback for cauth django plugin

This callback can prevent new users from being created based on specific
criteria. The plugin is defined in settings.py, so it can be any python
code. For example, it can look up in a specific table if this user is
supposed to be allowed to log in at all.
tools/communityauth/sample/django/auth.py