aboutsummaryrefslogtreecommitdiffstats
path: root/alphabetlearning/payments/models.py
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-12-03 17:10:23 +0000
committerMatthew Lemon <y@yulqen.org>2024-12-03 17:10:23 +0000
commit3bcd728b0bd37c95865205a75ffbddfb2e086f90 (patch)
tree181a79c8e8b156509bfe03c34fd8ceff57382b20 /alphabetlearning/payments/models.py
parent38f7a88a15f1278df6a44242e2e22814914beddb (diff)
First cut at email verification
Diffstat (limited to 'alphabetlearning/payments/models.py')
-rw-r--r--alphabetlearning/payments/models.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/alphabetlearning/payments/models.py b/alphabetlearning/payments/models.py
index 7a8c7bb..0702427 100644
--- a/alphabetlearning/payments/models.py
+++ b/alphabetlearning/payments/models.py
@@ -1,3 +1,5 @@
+import uuid
+
from django.conf import settings
from django.core.exceptions import ValidationError
from django.db import models
@@ -5,6 +7,13 @@ from django.db import models
from alphabetlearning.resources.models import Resource
+class PendingEmailVerification(models.Model):
+ email = models.EmailField()
+ verification_token = models.UUIDField(default=uuid.uuid4, editable=False)
+ created_at = models.DateTimeField(auto_now_add=True)
+ is_verified = models.BooleanField(default=False)
+
+
class EmailSignup(models.Model):
email = models.EmailField(unique=True)
date_added = models.DateTimeField(auto_now_add=True)