Skip to content

Commit

Permalink
feat: create data_source user #1154
Browse files Browse the repository at this point in the history
  • Loading branch information
Canway-shiisa committed Aug 25, 2023
1 parent 7a68605 commit c355502
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/bk-user/bkuser/biz/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,6 @@ def validate_tenant_id(value):

def validate_data_source_user_username(value):
if not re.fullmatch(re.compile(DATA_SOURCE_USERNAME_REGEX), value):
raise ValidationError(_("{} 不符合 用户名 的命名规范: 由3-32位字母、数字、下划线(_)、点(.)、连接符(-)字符组成,以字母开头").format(value)) # noqa: E501
raise ValidationError(
_("{} 不符合 用户名 的命名规范: 由3-32位字母、数字、下划线(_)、点(.)、连接符(-)字符组成,以字母开头").format(value), # noqa: E501
)
17 changes: 16 additions & 1 deletion src/bk-user/poetry.lock

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

1 change: 1 addition & 0 deletions src/bk-user/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ opentelemetry-instrumentation-celery = "0.40b0"
redis = "4.6.0"
django-redis = "5.3.0"
pydantic = "2.1.1"
zxcvbn = "4.4.28"
phonenumbers = "8.13.18"

[tool.poetry.group.dev.dependencies]
Expand Down

0 comments on commit c355502

Please sign in to comment.