Skip to content

Commit

Permalink
perf: Passkey Model field token max_length 1024
Browse files Browse the repository at this point in the history
  • Loading branch information
BaiJiangJie authored and feng626 committed Dec 12, 2024
1 parent 7fd88b9 commit 54726f0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/authentication/backends/passkey/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Passkey(JMSBaseModel):
added_on = models.DateTimeField(auto_now_add=True, verbose_name=_("Added on"))
date_last_used = models.DateTimeField(null=True, default=None, verbose_name=_("Date last used"))
credential_id = models.CharField(max_length=255, unique=True, null=False, verbose_name=_("Credential ID"))
token = models.CharField(max_length=255, null=False, verbose_name=_("Token"))
token = models.CharField(max_length=1024, null=False, verbose_name=_("Token"))

def __str__(self):
return self.name
18 changes: 18 additions & 0 deletions apps/authentication/migrations/0004_alter_passkey_token.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 4.1.13 on 2024-12-12 06:25

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('authentication', '0003_sshkey'),
]

operations = [
migrations.AlterField(
model_name='passkey',
name='token',
field=models.CharField(max_length=1024, verbose_name='Token'),
),
]

0 comments on commit 54726f0

Please sign in to comment.