mirror of
https://github.com/internetee/registry.git
synced 2025-08-01 15:34:41 +02:00
Updated verify registrant change
This commit is contained in:
parent
1fbfdff1e7
commit
c2881acdca
1 changed files with 10 additions and 11 deletions
|
@ -17,6 +17,8 @@ module Actions
|
||||||
|
|
||||||
::Actions::BaseAction.maybe_attach_legal_doc(domain, params[:legal_document])
|
::Actions::BaseAction.maybe_attach_legal_doc(domain, params[:legal_document])
|
||||||
|
|
||||||
|
ask_registrant_verification
|
||||||
|
|
||||||
commit
|
commit
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -251,8 +253,15 @@ module Actions
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def ask_registrant_verification
|
||||||
|
if verify_registrant_change? && !bypass_verify &&
|
||||||
|
Setting.request_confirmation_on_registrant_change_enabled
|
||||||
|
domain.registrant_verification_asked!(params, params[:registrar])
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
def verify_registrant_change?
|
def verify_registrant_change?
|
||||||
return validate_dispute_case if params[:reserved_pw]
|
return validate_dispute_case if domain.disputed? && params[:reserved_pw].present?
|
||||||
return false if !@changes_registrant || true?(params[:registrant][:verified])
|
return false if !@changes_registrant || true?(params[:registrant][:verified])
|
||||||
return true unless domain.disputed?
|
return true unless domain.disputed?
|
||||||
|
|
||||||
|
@ -274,19 +283,9 @@ module Actions
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def ask_registrant_verification
|
|
||||||
if verify_registrant_change? && !bypass_verify &&
|
|
||||||
Setting.request_confirmation_on_registrant_change_enabled
|
|
||||||
domain.registrant_verification_asked!(params, params[:registrar])
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def commit
|
def commit
|
||||||
return false if any_errors?
|
return false if any_errors?
|
||||||
|
|
||||||
ask_registrant_verification
|
|
||||||
return false if any_errors?
|
|
||||||
|
|
||||||
domain.save
|
domain.save
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue