Fix epp auth if registrant changed on disputed domain

This commit is contained in:
Alex Sherman 2021-04-16 17:47:06 +05:00
parent 661ab8e0ac
commit 647413b9be
2 changed files with 46 additions and 4 deletions

View file

@ -209,9 +209,9 @@ module Actions
end
def verify_registrant_change?
return if !@changes_registrant || params[:registrant][:verified] == true
return true unless domain.disputed?
return validate_dispute_case if params[:reserved_pw]
return false if !@changes_registrant || params[:registrant][:verified] == true
return true unless domain.disputed?
domain.add_epp_error('2304', nil, nil, 'Required parameter missing; reservedpw element ' \
'required for dispute domains')