1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-07-31 12:41:08 +00:00

settings.ALLOW_EMPTY_PASSWORD added. allows to create user withnout password. useful with SSO authentication.

This commit is contained in:
Ing. Jan KRCMAR 2016-06-02 13:39:18 +02:00
parent f484598414
commit 3666ff0738
4 changed files with 6 additions and 3 deletions

View file

@ -85,6 +85,7 @@ def accounts(request):
error_messages = []
users = User.objects.all().order_by('username')
create_missing_userattributes(users)
allow_empty_password = settings.ALLOW_EMPTY_PASSWORD
if request.method == 'POST':
if 'create' in request.POST: