diff options
| author | Bobby <[email protected]> | 2022-09-05 19:25:07 -0400 |
|---|---|---|
| committer | Bobby <[email protected]> | 2022-09-05 19:25:07 -0400 |
| commit | 10dccc6faa8c95b34a96cdfeae6daa335fe9b76d (patch) | |
| tree | 1da99e8b123768c8a28913ed88cb1431522501cb /users/models.py | |
| parent | 49b2cf3987378971d05cdcac996c69d7f862461e (diff) | |
| download | thatcomputerscientist-10dccc6faa8c95b34a96cdfeae6daa335fe9b76d.tar.xz thatcomputerscientist-10dccc6faa8c95b34a96cdfeae6daa335fe9b76d.zip | |
Added captcha to register page
Diffstat (limited to 'users/models.py')
| -rw-r--r-- | users/models.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/users/models.py b/users/models.py index 808e197a..dab44f38 100644 --- a/users/models.py +++ b/users/models.py @@ -17,3 +17,10 @@ class UserProfile(models.Model): def __str__(self): return self.user.username +class CaptchaStore(models.Model): + captcha_string = models.CharField(max_length=6) + csrf_token = models.CharField(max_length=100, primary_key=True) + created_at = models.DateTimeField(auto_now_add=True) + + def __str__(self): + return self.captcha_string |
