-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(web): 对作业名、创建租户、充值等输入做长度控制,修改示例配置文件增加对用户ID和账户的默认配置,避免用户输入过长或输入非法字符 (
#948) ## 对输入端做长度控制,避免用户输入过长,导致slurm或数据库报错、布局破坏: - 提交作业和应用时“作业名”长度输入为50字符; - 创建租户时,租户名:限制255字符 - 创建用户时,姓名:限制50字符 - 账户充值、租户充值时“类型”长度限制50字符,"备注”限制255字符; ## 修改了./cli init 生成的示例配置文件mis.yaml,增加默认配置(之前已部署的scow,如不更改mis.yaml,以下内容不生效): - 创建账户时,账户名:3-20位数字、小写字母、下划线,以小写字母开头 - 创建用户时,用户ID:3-20位数字、小写字母、下划线,以小写字母开头
- Loading branch information
Showing
10 changed files
with
70 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"@scow/portal-web": patch | ||
"@scow/mis-web": patch | ||
"@scow/docs": patch | ||
--- | ||
|
||
对提交作业和应用的作业名,创建用户时的姓名、创建租户时租户名、充值时的类型、备注输入做长度控制,避免用户输入过长 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@scow/cli": patch | ||
--- | ||
|
||
修改了示例配置文件,新的示例配置文件中默认配置了账户和用户的ID的格式,皆改为: 3-20位数字、小写字母、下划线,以小写字母开头 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters