mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 18:39:52 +01:00
updated screen name validator
This commit is contained in:
parent
74e74dedef
commit
ec62fea665
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue