2FA: Login via U2F

This commit is contained in:
Raphael Michel
2016-10-09 12:59:43 +02:00
parent aecf263de7
commit d7719d0bc7
9 changed files with 135 additions and 19 deletions
+5
View File
@@ -4,6 +4,7 @@ from django.contrib.auth.models import (
)
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django_otp.models import Device
from .base import LoggingMixin
@@ -126,3 +127,7 @@ class User(AbstractBaseUser, PermissionsMixin, LoggingMixin):
}
else:
return self.email
class U2FDevice(Device):
json_data = models.TextField()