mirror of https://github.com/jumpserver/jumpserver
perf: Passkey Model field token max_length 1024
parent
7fd88b95f9
commit
54726f0a2d
|
@ -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
|
||||
|
|
|
@ -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'),
|
||||
),
|
||||
]
|
Loading…
Reference in New Issue