added 'search' to the list of forbidden user names [ci skip]
This commit is contained in:
parent
d09b8554d3
commit
8882360e4b
|
@ -2,7 +2,7 @@ class ScreenNameValidator < ActiveModel::EachValidator
|
||||||
FORBIDDEN_SCREEN_NAMES = %w(justask_admin retrospring_admin admin justask retrospring support about public
|
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
|
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
|
||||||
group settings)
|
group settings search pixeidesu plxeldesu plxeidesu)
|
||||||
|
|
||||||
def validate_each(record, attribute, value)
|
def validate_each(record, attribute, value)
|
||||||
if FORBIDDEN_SCREEN_NAMES.include? value.downcase
|
if FORBIDDEN_SCREEN_NAMES.include? value.downcase
|
||||||
|
|
Loading…
Reference in New Issue