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/migrations | |
| parent | 49b2cf3987378971d05cdcac996c69d7f862461e (diff) | |
| download | thatcomputerscientist-10dccc6faa8c95b34a96cdfeae6daa335fe9b76d.tar.xz thatcomputerscientist-10dccc6faa8c95b34a96cdfeae6daa335fe9b76d.zip | |
Added captcha to register page
Diffstat (limited to 'users/migrations')
| -rw-r--r-- | users/migrations/0003_captchastore.py | 22 | ||||
| -rw-r--r-- | users/migrations/0004_remove_captchastore_id_alter_captchastore_csrf_token.py | 22 |
2 files changed, 44 insertions, 0 deletions
diff --git a/users/migrations/0003_captchastore.py b/users/migrations/0003_captchastore.py new file mode 100644 index 00000000..9aebc0aa --- /dev/null +++ b/users/migrations/0003_captchastore.py @@ -0,0 +1,22 @@ +# Generated by Django 4.0.6 on 2022-09-05 22:27 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('users', '0002_userprofile_email_verified'), + ] + + operations = [ + migrations.CreateModel( + name='CaptchaStore', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('captcha_string', models.CharField(max_length=6)), + ('csrf_token', models.CharField(max_length=100)), + ('created_at', models.DateTimeField(auto_now_add=True)), + ], + ), + ] diff --git a/users/migrations/0004_remove_captchastore_id_alter_captchastore_csrf_token.py b/users/migrations/0004_remove_captchastore_id_alter_captchastore_csrf_token.py new file mode 100644 index 00000000..1dd16bcc --- /dev/null +++ b/users/migrations/0004_remove_captchastore_id_alter_captchastore_csrf_token.py @@ -0,0 +1,22 @@ +# Generated by Django 4.0.6 on 2022-09-05 22:30 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('users', '0003_captchastore'), + ] + + operations = [ + migrations.RemoveField( + model_name='captchastore', + name='id', + ), + migrations.AlterField( + model_name='captchastore', + name='csrf_token', + field=models.CharField(max_length=100, primary_key=True, serialize=False), + ), + ] |
