reserve "moderator" and "moderators" usernames
This commit is contained in:
parent
3a60d3abba
commit
888c80eb83
|
@ -43,7 +43,8 @@ class User < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
BANNED_USERNAMES = [ "admin", "administrator", "hostmaster", "mailer-daemon",
|
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
|
# days old accounts are considered new for
|
||||||
NEW_USER_DAYS = 7
|
NEW_USER_DAYS = 7
|
||||||
|
|
Loading…
Reference in a new issue