mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 12:08:27 +02:00
fix security
This commit is contained in:
parent
59066b4487
commit
74afaf46d4
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ class Domain < ActiveRecord::Base
|
|||
after_create :update_reserved_domains
|
||||
def update_reserved_domains
|
||||
return unless in_reserved_list?
|
||||
rd = ReservedDomain.first
|
||||
rd = ReservedDomain.by_domain(name).first
|
||||
rd.names[name] = SecureRandom.hex
|
||||
rd.save
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue