MCPcopy Create free account
hub / github.com/Scalingo/cli / isUsernameValid

Function isUsernameValid

db/users/utils.go:105–110  ·  view source on GitHub ↗
(username string)

Source from the content-addressed store, hash-verified

103}
104
105func isUsernameValid(username string) (string, bool) {
106 if len(username) < 6 || len(username) > 32 {
107 return "Name must contain between 6 and 32 characters", false
108 }
109 return "", true
110}

Callers 3

Test_isUsernameValidFunction · 0.85
UpdateUserPasswordFunction · 0.85
CreateUserFunction · 0.85

Calls

no outgoing calls

Tested by 1

Test_isUsernameValidFunction · 0.68