reserve usernames with -app in them

This commit is contained in:
Girish Ramakrishnan
2016-05-18 21:45:02 -07:00
parent de055492ef
commit 42cc8249f8

View File

@@ -88,6 +88,8 @@ function validateUsername(username) {
if (RESERVED_USERNAMES.indexOf(username) !== -1) return new UserError(UserError.BAD_USERNAME, 'Username is reserved');
if (username.indexOf('-app') !== -1) return UserError(UserError.BAD_USERNAME, 'Username pattern is reserved for apps');
return null;
}