updated screen name validator
This commit is contained in:
parent
74e74dedef
commit
ec62fea665
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue