diff options
author | enahum <nahumhbl@gmail.com> | 2016-07-28 13:38:47 -0400 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2016-07-28 13:38:47 -0400 |
commit | 12fe314b26042c2508dcb850f5ecdd7794d6c982 (patch) | |
tree | 8a8e2e5d1090082fb7d0b4c79f1e04f290a9dbb3 /model | |
parent | 6dc7ea6ab267b18193a9a5a034d0762a7b1cce6c (diff) | |
download | chat-12fe314b26042c2508dcb850f5ecdd7794d6c982.tar.gz chat-12fe314b26042c2508dcb850f5ecdd7794d6c982.tar.bz2 chat-12fe314b26042c2508dcb850f5ecdd7794d6c982.zip |
PLT-3687 Restrict the name "matterbot" from usernames (#3686)
Diffstat (limited to 'model')
-rw-r--r-- | model/user.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/model/user.go b/model/user.go index 2a7427748..bad616d73 100644 --- a/model/user.go +++ b/model/user.go @@ -413,6 +413,7 @@ var validUsernameChars = regexp.MustCompile(`^[a-z0-9\.\-_]+$`) var restrictedUsernames = []string{ "all", "channel", + "matterbot", } func IsValidUsername(s string) bool { |