mirror of https://github.com/jumpserver/jumpserver
parent
32ab8a1646
commit
7531a3ada7
|
@ -585,7 +585,7 @@ class Nav(object):
|
||||||
print "请输入运行命令所关联系统用户的ID, q退出"
|
print "请输入运行命令所关联系统用户的ID, q退出"
|
||||||
|
|
||||||
try:
|
try:
|
||||||
role_id = raw_input("\033[1;32mRole>:\033[0m ").strip()
|
role_id = int(raw_input("\033[1;32mRole>:\033[0m ").strip())
|
||||||
if role_id == 'q':
|
if role_id == 'q':
|
||||||
break
|
break
|
||||||
except (IndexError, ValueError):
|
except (IndexError, ValueError):
|
||||||
|
|
|
@ -94,7 +94,7 @@ $('#roleForm').validator({
|
||||||
timely: 2,
|
timely: 2,
|
||||||
theme: "yellow_right_effect",
|
theme: "yellow_right_effect",
|
||||||
rules: {
|
rules: {
|
||||||
check_name: [/(?!^root$)^\w{2,20}$/i, '大小写字母数字和下划线,2-20位,并且非root'],
|
check_name: [/(?!^root$)^[\w.]{2,20}$/i, '大小写字母数字和下划线小数点,2-20位,并且非root'],
|
||||||
check_begin: [/^[\-]+BEGIN RSA PRIVATE KEY[\-]+/gm, 'RSA Key填写有误,请检查'],
|
check_begin: [/^[\-]+BEGIN RSA PRIVATE KEY[\-]+/gm, 'RSA Key填写有误,请检查'],
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue