mirror of
https://github.com/internetee/registry.git
synced 2025-07-26 04:28:27 +02:00
Merge pull request #80 from internetee/story/112993395-reserved-password
Story#112993395 - in reserved domains we are using columns, not hash
This commit is contained in:
commit
89292bea53
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ class Domain < ActiveRecord::Base
|
||||||
def update_reserved_domains
|
def update_reserved_domains
|
||||||
return unless in_reserved_list?
|
return unless in_reserved_list?
|
||||||
rd = ReservedDomain.by_domain(name).first
|
rd = ReservedDomain.by_domain(name).first
|
||||||
rd.names[name] = SecureRandom.hex
|
rd.password = SecureRandom.hex
|
||||||
rd.save
|
rd.save
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue