mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Registrant change now requires EPP verify attribute
This commit is contained in:
parent
7d0365974e
commit
d72cbc20f5
21 changed files with 318 additions and 29 deletions
|
@ -34,8 +34,8 @@ class Epp::DomainsController < EppController
|
|||
authorize! :update, @domain, @password
|
||||
|
||||
if @domain.update(params[:parsed_frame], current_user)
|
||||
if @domain.pending_update?
|
||||
render_epp_response '/epp/domains/success_pending'
|
||||
if @domain.epp_pending_update.present?
|
||||
render_epp_response '/epp/shared/success_pending'
|
||||
else
|
||||
render_epp_response '/epp/domains/success'
|
||||
end
|
||||
|
|
|
@ -9,6 +9,7 @@ class EppController < ApplicationController
|
|||
|
||||
rescue_from CanCan::AccessDenied do |_exception|
|
||||
@errors ||= []
|
||||
|
||||
if @errors.blank?
|
||||
@errors = [{
|
||||
msg: t('errors.messages.epp_authorization_error'),
|
||||
|
@ -50,6 +51,7 @@ class EppController < ApplicationController
|
|||
|
||||
def handle_errors(obj = nil)
|
||||
@errors ||= []
|
||||
|
||||
if obj
|
||||
obj.construct_epp_errors
|
||||
@errors += obj.errors[:epp_errors]
|
||||
|
|
|
@ -4,11 +4,7 @@ class Registrant::DomainUpdateConfirmsController < RegistrantController
|
|||
|
||||
def show
|
||||
@domain = Domain.find(params[:id])
|
||||
|
||||
# if @domain.present? && params[:token].present? && @domain.registrant_verification_token == params[:token]
|
||||
# else
|
||||
# @domain = nil
|
||||
# end
|
||||
@domain = nil unless @domain.registrant_update_confirmable?(params[:token])
|
||||
end
|
||||
|
||||
def create
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue