This commit is contained in:
midoks
2022-12-31 14:52:39 +08:00
parent b020f23161
commit a1550765aa
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1754,7 +1754,7 @@ def addMasterRepSlaveUser(version=''):
# address = args['address'].strip()
# dataAccess = args['dataAccess'].strip()
reg = "^[\w\.-]+$"
reg = "^[\w-]+$"
if not re.match(reg, username):
return mw.returnJson(False, '用户名不能带有特殊符号!')
checks = ['root', 'mysql', 'test', 'sys', 'panel_logs']