-
Notifications
You must be signed in to change notification settings - Fork 482
perf: improve the validation rules for username #868
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Co-authored-by: guqing <38999863+guqing@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
…erf/username-validation
特殊字符目前只支持连字符(-)和点(.)?是否考虑增加适配邮箱的特殊字符?或者考虑登录时可以使用邮箱进行登陆? |
|
/lgtm |
ping @halo-dev/sig-halo-console |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: guqing The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
#### What type of PR is this? /kind improvement #### What this PR does / why we need it: 优化用户名的校验规则,目前采用 DNS 名称的规则,即:必须以字母(a-z或A-Z)开头,并包含字母数字字符(a-z,A-Z,0-9)和连字符(-)。每一段名称以字母结尾(a-z或A-Z)。名称以点(.)分隔 #### Which issue(s) this PR fixes: Fixes halo-dev#3239 #### Screenshots: #### Special notes for your reviewer: 测试方式: 1. 新建用户,检查用户名输入规则是否符合预期。 #### Does this PR introduce a user-facing change? ```release-note 优化 Console 端新建用户时,用户名的校验规则。 ```
What type of PR is this?
/kind improvement
What this PR does / why we need it:
优化用户名的校验规则,目前采用 DNS 名称的规则,即:必须以字母(a-z或A-Z)开头,并包含字母数字字符(a-z,A-Z,0-9)和连字符(-)。每一段名称以字母结尾(a-z或A-Z)。名称以点(.)分隔
Which issue(s) this PR fixes:
Fixes halo-dev/halo#3239
Screenshots:
Special notes for your reviewer:
测试方式:
Does this PR introduce a user-facing change?