This commit is contained in:
Raphael Rouiller
2024-07-08 14:06:52 +02:00
commit aa54287126
96 changed files with 2718 additions and 0 deletions

View File

@ -0,0 +1,11 @@
from django.contrib.auth.models import AbstractUser
from django.db import models
class CustomUser(AbstractUser):
profile_picture = models.ImageField(upload_to='profile_pics/', blank=True, null=True)
language = models.CharField(max_length=2, default='en')
is_2fa_enabled = models.BooleanField(default=False)
otp_secret = models.CharField(max_length=32, blank=True)
def __str__(self):
return self.username