From ec62fea66500f30d62cdd92fc75548b419082ac1 Mon Sep 17 00:00:00 2001 From: Andreas N Date: Fri, 16 Jan 2015 23:31:02 +0100 Subject: [PATCH] updated screen name validator --- app/validators/screen_name_validator.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/validators/screen_name_validator.rb b/app/validators/screen_name_validator.rb index e0158662..b8279de2 100644 --- a/app/validators/screen_name_validator.rb +++ b/app/validators/screen_name_validator.rb @@ -1,7 +1,8 @@ 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) + siteadmin site_admin help retro_spring retroospring retrosprlng niisding nllsding + pixeidesu terms privacy help) def validate_each(record, attribute, value) if FORBIDDEN_SCREEN_NAMES.include? value.downcase