added 'search' to the list of forbidden user names [ci skip]

This commit is contained in:
nilsding 2015-02-02 16:09:52 +01:00
parent d09b8554d3
commit 8882360e4b
1 changed files with 2 additions and 2 deletions

View File

@ -2,11 +2,11 @@ class ScreenNameValidator < ActiveModel::EachValidator
FORBIDDEN_SCREEN_NAMES = %w(justask_admin retrospring_admin admin justask retrospring support about public
notifications inbox sign_in sign_up sidekiq moderation moderator mod administrator
siteadmin site_admin help retro_spring retroospring retrosprlng niisding nllsding
group settings)
group settings search pixeidesu plxeldesu plxeidesu)
def validate_each(record, attribute, value)
if FORBIDDEN_SCREEN_NAMES.include? value.downcase
record.errors[attribute] << "Thou shalt not use this username! Please choose another one."
end
end
end
end