reserve "moderator" and "moderators" usernames

This commit is contained in:
joshua stein 2014-02-21 11:41:47 -06:00
parent 3a60d3abba
commit 888c80eb83

View file

@ -43,7 +43,8 @@ class User < ActiveRecord::Base
end
BANNED_USERNAMES = [ "admin", "administrator", "hostmaster", "mailer-daemon",
"postmaster", "root", "security", "support", "webmaster", ]
"postmaster", "root", "security", "support", "webmaster", "moderator",
"moderators", ]
# days old accounts are considered new for
NEW_USER_DAYS = 7