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

Check for ldap3 existence

This commit is contained in:
Kendar 2021-05-28 13:17:19 +02:00
parent b9dc121ff9
commit 6c65d2beed

View file

@ -62,6 +62,8 @@ try:
try:
user = User.objects.get(username=username)
attributes = UserAttributes.objects.get(user=user)
# TODO VERIFY
except User.DoesNotExist:
print("authenticate-create new user")
user = User(username=username)