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:
parent
b9dc121ff9
commit
6c65d2beed
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue