core: add more logging

This commit is contained in:
Jens Langhammer 2018-12-18 15:35:30 +01:00
parent 2e4a0297a4
commit 9abcc8852d
1 changed files with 1 additions and 0 deletions

View File

@ -52,6 +52,7 @@ class LoginView(UserPassesTestMixin, FormView):
for search_field in CONFIG.y('passbook.uid_fields'): for search_field in CONFIG.y('passbook.uid_fields'):
users = User.objects.filter(**{search_field: uid_value}) users = User.objects.filter(**{search_field: uid_value})
if users.exists(): if users.exists():
LOGGER.debug("Found user %s with uid_field %s", users.first(), search_field)
return users.first() return users.first()
return None return None