fix: 系统用户账号简单4位长度,密码简单6位
This commit is contained in:
1 parent
96b15d4cf2
commit
cc2c18e75d
6 files changed
+50
-5
No files matched your search
@@ -19,7 +19,7 @@ func ValidUsername(username string) bool {
|
||||
if username == "" {
|
||||
return false
|
||||
}
|
||||
pattern := `^[a-zA-Z][a-z0-9A-Z]{5,}`
|
||||
pattern := `^.{4,}$` //`^[a-zA-Z][a-z0-9A-Z]{5,}`
|
||||
match, err := regexp.MatchString(pattern, username)
|
||||
if err != nil {
|
||||
return false
|
||||
|
||||
Reference in new issue
Block a user