diff --git a/Pipfile.lock b/Pipfile.lock index 71a9612c..41f908c5 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -662,7 +662,7 @@ "sha256:37dd54208da7e1cd875388217d5e00ebd4179249f90fb72437e91a35459a0ad3", "sha256:a8b2bc7bffae282281c8140a97d3aa9c14da0b136dfe83f850eea9a5f7470427" ], - "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2'", "version": "==2.9.0.post0" }, "pytz": { @@ -816,7 +816,7 @@ "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926", "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254" ], - "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2'", "version": "==1.16.0" }, "sqlparse": { diff --git a/codeforlife/user/migrations/0001_initial.py b/codeforlife/user/migrations/0001_initial.py index 2b700d29..a0a2b253 100644 --- a/codeforlife/user/migrations/0001_initial.py +++ b/codeforlife/user/migrations/0001_initial.py @@ -1,4 +1,4 @@ -# Generated by Django 3.2.24 on 2024-04-15 10:04 +# Generated by Django 3.2.25 on 2024-09-27 09:48 import codeforlife.user.models.user import django.contrib.auth.models @@ -11,8 +11,8 @@ class Migration(migrations.Migration): initial = True dependencies = [ + ('common', '0054_delete_aimmo_models'), ('auth', '0012_alter_user_first_name_max_length'), - ('common', '0048_unique_school_names'), ] operations = [ @@ -81,7 +81,7 @@ class Migration(migrations.Migration): name='OtpBypassToken', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('token', models.CharField(max_length=8, verbose_name='token')), + ('token', models.CharField(help_text='The hashed equivalent of the token.', max_length=88, verbose_name='token')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='otp_bypass_tokens', to='user.user')), ], options={ diff --git a/codeforlife/user/models/otp_bypass_token.py b/codeforlife/user/models/otp_bypass_token.py index ec118bf2..d06cdd0b 100644 --- a/codeforlife/user/models/otp_bypass_token.py +++ b/codeforlife/user/models/otp_bypass_token.py @@ -73,7 +73,8 @@ def bulk_create(self, user: User): # type: ignore[override] token = models.CharField( _("token"), - max_length=length, + max_length=88, + help_text=_("The hashed equivalent of the token."), ) class Meta(TypedModelMeta):