Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

数据库修改:客户端密码长度限制调整 #1093

Merged
merged 1 commit into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated by Django 3.1.14 on 2024-06-19 11:01

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('authen', '0004_auto_20220608_2345'),
]

operations = [
migrations.AlterField(
model_name='scmoauthsetting',
name='client_secret',
field=models.CharField(max_length=512, verbose_name='客户端密码'),
),
migrations.AlterField(
model_name='scmoauthsetting',
name='redirect_uri',
field=models.CharField(max_length=128, verbose_name='回调地址'),
),
]
4 changes: 2 additions & 2 deletions server/projects/main/apps/authen/models/scm.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,8 @@ class ScmOauthSetting(models.Model):
scm_platform = models.IntegerField(verbose_name="凭证所属平台", choices=SCM_PLATFORM_CHOICES,
default=ScmPlatformEnum.GIT_OA)
client_id = models.CharField(verbose_name="客户端ID", max_length=128)
client_secret = models.CharField(verbose_name="客户端密码", max_length=128)
redirect_uri = models.CharField(verbose_name="回调地址", max_length=64)
client_secret = models.CharField(verbose_name="客户端密码", max_length=512)
redirect_uri = models.CharField(verbose_name="回调地址", max_length=128)
scm_platform_desc = models.CharField(max_length=32, verbose_name="补充其他所属平台", blank=True, null=True)

@property
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.1.14 on 2024-06-19 11:01

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('codeproj', '0008_auto_20220803_2054'),
]

operations = [
migrations.AlterField(
model_name='baseproject',
name='status',
field=models.IntegerField(choices=[(1, '活跃'), (2, '失活'), (3, '归档中'), (4, '已归档未清理'), (5, '已归档')], default=1, verbose_name='项目状态'),
),
]