mirror of
https://github.com/internetee/registry.git
synced 2025-07-01 16:53:37 +02:00
Save token and asked_at to current domain instance
This commit is contained in:
parent
ee39181094
commit
4ef50d97b5
1 changed files with 5 additions and 0 deletions
|
@ -181,11 +181,16 @@ class Domain < ActiveRecord::Base
|
|||
|
||||
return true unless registrant_verification_asked?
|
||||
pending_json_cache = all_changes
|
||||
token = registrant_verification_token
|
||||
asked_at = registrant_verification_asked_at
|
||||
|
||||
DomainMailer.registrant_pending_updated(self).deliver_now
|
||||
|
||||
reload # revert back to original
|
||||
|
||||
self.pending_json = pending_json_cache
|
||||
self.registrant_verification_token = token
|
||||
self.registrant_verification_asked_at = asked_at
|
||||
domain_statuses.create(value: DomainStatus::PENDING_UPDATE)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue