mirror of
https://github.com/internetee/registry.git
synced 2025-06-06 20:55:44 +02:00
Fix CC issues
This commit is contained in:
parent
64d35a864f
commit
c42c482d64
1 changed files with 10 additions and 10 deletions
|
@ -26,11 +26,9 @@ module Api
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
render json: {
|
render json: { domain_name: @domain.name,
|
||||||
domain_name: @domain.name,
|
|
||||||
current_registrant: serialized_registrant(current_registrant),
|
current_registrant: serialized_registrant(current_registrant),
|
||||||
status: params[:decision],
|
status: params[:decision] }
|
||||||
}
|
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
@ -96,12 +94,14 @@ module Api
|
||||||
end
|
end
|
||||||
|
|
||||||
def verify_action
|
def verify_action
|
||||||
if params[:template] == 'change'
|
action = if params[:template] == 'change'
|
||||||
return true if @domain.registrant_update_confirmable?(verify_params[:token])
|
@domain.registrant_update_confirmable?(verify_params[:token])
|
||||||
elsif params[:template] == 'delete'
|
elsif params[:template] == 'delete'
|
||||||
return true if @domain.registrant_delete_confirmable?(verify_params[:token])
|
@domain.registrant_delete_confirmable?(verify_params[:token])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return unless action
|
||||||
|
|
||||||
render json: { error: 'Application expired or not found' }, status: :unauthorized
|
render json: { error: 'Application expired or not found' }, status: :unauthorized
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue