Commit e8b8ef39 authored by Daniel Schalla's avatar Daniel Schalla Committed by George Goldberg

Blacklist System as Username (#9060)

adapted tests
parent 9e5ec7d0
......@@ -565,6 +565,7 @@ var restrictedUsernames = []string{
"all",
"channel",
"matterbot",
"system",
}
func IsValidUsername(s string) bool {
......
......@@ -272,6 +272,7 @@ var usernames = []struct {
{"spin'punch", false},
{"spin*punch", false},
{"all", false},
{"system", false},
}
func TestValidUsername(t *testing.T) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment