mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
PLT-3687 Restrict the name "matterbot" from usernames (#3686)
This commit is contained in:
@@ -413,6 +413,7 @@ var validUsernameChars = regexp.MustCompile(`^[a-z0-9\.\-_]+$`)
|
||||
var restrictedUsernames = []string{
|
||||
"all",
|
||||
"channel",
|
||||
"matterbot",
|
||||
}
|
||||
|
||||
func IsValidUsername(s string) bool {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user