From 8fba959f5e4032049edc8afbc8cbb1260ac071b7 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sat, 22 Jan 2022 21:29:30 +0100 Subject: [PATCH] Add `feedback` to forbidden screen names --- app/validators/screen_name_validator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/validators/screen_name_validator.rb b/app/validators/screen_name_validator.rb index 64836e8d..d854512c 100644 --- a/app/validators/screen_name_validator.rb +++ b/app/validators/screen_name_validator.rb @@ -2,7 +2,7 @@ class ScreenNameValidator < ActiveModel::EachValidator FORBIDDEN_SCREEN_NAMES = %w(justask_admin retrospring_admin admin justask retrospring about public notifications inbox sign_in sign_up sidekiq moderation moderator mod administrator siteadmin site_admin help retro_spring retroospring retrosprlng niisding nllsding - pixeidesu plxeldesu plxeidesu terms privacy linkfilter) + pixeidesu plxeldesu plxeidesu terms privacy linkfilter feedback) FORBIDDEN_SCREEN_NAME_REGEXPS = [/wreciap\z/i] def validate_each(record, attribute, value)