Skip to content

Commit

Permalink
fixed token field
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Sep 27, 2024
1 parent 66a37ef commit 264b263
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions codeforlife/user/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 = [
Expand Down Expand Up @@ -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={
Expand Down
3 changes: 2 additions & 1 deletion codeforlife/user/models/otp_bypass_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 264b263

Please sign in to comment.