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:
Timo Võhmar 2016-02-05 14:27:00 +02:00
commit 89292bea53

View file

@ -93,7 +93,7 @@ class Domain < ActiveRecord::Base
def update_reserved_domains
return unless in_reserved_list?
rd = ReservedDomain.by_domain(name).first
rd.names[name] = SecureRandom.hex
rd.password = SecureRandom.hex
rd.save
end