Update index.py

This commit is contained in:
Mr Chen
2024-07-24 12:08:18 +08:00
parent 9f8af72c70
commit bd13bc8d68
+1 -1
View File
@@ -2124,7 +2124,7 @@ def addMasterRepSlaveUser(version=''):
# address = args['address'].strip()
# dataAccess = args['dataAccess'].strip()
reg = "^[\w-]+$"
reg = r"^[\w-]+$"
if not re.match(reg, username):
return mw.returnJson(False, '用户名不能带有特殊符号!')
checks = ['root', 'mysql', 'test', 'sys', 'performance_schema','information_schema']