From 3bcd728b0bd37c95865205a75ffbddfb2e086f90 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Tue, 3 Dec 2024 17:10:23 +0000 Subject: First cut at email verification --- alphabetlearning/payments/models.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'alphabetlearning/payments/models.py') 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) -- cgit v1.2.3