mirror of https://github.com/jumpserver/jumpserver
支持用户名带小数点,上传文件大小最大2G
parent
6ba9191b30
commit
28e0ea3e81
|
@ -131,7 +131,7 @@ $('#userForm').validator({
|
||||||
timely: 2,
|
timely: 2,
|
||||||
theme: "yellow_right_effect",
|
theme: "yellow_right_effect",
|
||||||
rules: {
|
rules: {
|
||||||
check_username: [/^\w{3,20}$/, '大小写字母数字和下划线'],
|
check_username: [/^[\w.]{3,20}$/, '大小写字母数字和下划线小数点'],
|
||||||
type_m: function(element){
|
type_m: function(element){
|
||||||
return $("#M").is(":checked");
|
return $("#M").is(":checked");
|
||||||
}
|
}
|
||||||
|
|
|
@ -99,6 +99,7 @@
|
||||||
autoProcessQueue: false,
|
autoProcessQueue: false,
|
||||||
uploadMultiple: true,
|
uploadMultiple: true,
|
||||||
parallelUploads: 100,
|
parallelUploads: 100,
|
||||||
|
maxFilesize: 2048,
|
||||||
maxFiles: 100,
|
maxFiles: 100,
|
||||||
url: '/file/upload/',
|
url: '/file/upload/',
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue