PLT-3687 Restrict the name "matterbot" from usernames (#3686)

This commit is contained in:
enahum
2016-07-28 13:38:47 -04:00
committed by Harrison Healey
parent 6dc7ea6ab2
commit 12fe314b26
2 changed files with 3 additions and 1 deletions

View File

@@ -413,6 +413,7 @@ var validUsernameChars = regexp.MustCompile(`^[a-z0-9\.\-_]+$`)
var restrictedUsernames = []string{
"all",
"channel",
"matterbot",
}
func IsValidUsername(s string) bool {

View File

@@ -310,7 +310,8 @@ export const Constants = {
'valet',
'all',
'channel',
'here'
'here',
'matterbot'
],
MONTHS: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
MAX_DMS: 20,