mirror of
https://github.com/internetee/registry.git
synced 2025-07-26 04:28: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
|
after_create :update_reserved_domains
|
||||||
def update_reserved_domains
|
def update_reserved_domains
|
||||||
return unless in_reserved_list?
|
return unless in_reserved_list?
|
||||||
rd = ReservedDomain.first
|
rd = ReservedDomain.by_domain(name).first
|
||||||
rd.names[name] = SecureRandom.hex
|
rd.names[name] = SecureRandom.hex
|
||||||
rd.save
|
rd.save
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue