Tesis
1.0.0
Loading...
Searching...
No Matches
models.py
Go to the documentation of this file.
1
from
django.db
import
models
2
3
# Create your models here.
4
5
class
User2FA
(models.Model):
6
email = models.EmailField(unique=
True
)
7
secret = models.CharField(max_length=32)
8
enabled = models.BooleanField(default=
False
)
9
10
def
__str__
(self):
11
return
self.
email
twofa.models.User2FA
Definition
models.py:5
twofa.models.User2FA.__str__
__str__(self)
Definition
models.py:10
twofa.models.User2FA.email
email
Definition
models.py:6
microservice2fa
twofa
models.py
Generated by
1.14.0