mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 09:45:11 +02:00
Generate new domain password after successful transfer
This commit is contained in:
parent
2067b73966
commit
8929072b71
2 changed files with 14 additions and 0 deletions
|
@ -236,6 +236,8 @@ class Domain < ActiveRecord::Base
|
|||
transfer_from: registrar
|
||||
)
|
||||
|
||||
generate_auth_info
|
||||
|
||||
self.registrar = params[:current_user].registrar
|
||||
save
|
||||
end
|
||||
|
@ -248,6 +250,8 @@ class Domain < ActiveRecord::Base
|
|||
transferred_at: Time.zone.now
|
||||
)
|
||||
|
||||
generate_auth_info
|
||||
|
||||
self.registrar = p.transfer_to
|
||||
save
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue