rename model to UserKey

This commit is contained in:
Tobias Bengfort
2021-06-17 11:02:20 +02:00
parent ba4e7f9a17
commit 68e257d60e
9 changed files with 52 additions and 35 deletions

View File

@@ -1,12 +1,12 @@
from django.http import JsonResponse
from . import FIDO2, U2F, TrustedDevice, totp
from .models import User_Keys
from .models import UserKey
from .views import verify
def has_mfa(request, username):
if User_Keys.objects.filter(username=username, enabled=1).count() > 0:
if UserKey.objects.filter(username=username, enabled=1).count() > 0:
return verify(request, username)
return False