mirror of
https://github.com/internetee/registry.git
synced 2025-06-06 04:37:30 +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
|
||||
end
|
||||
|
||||
render json: {
|
||||
domain_name: @domain.name,
|
||||
current_registrant: serialized_registrant(current_registrant),
|
||||
status: params[:decision],
|
||||
}
|
||||
render json: { domain_name: @domain.name,
|
||||
current_registrant: serialized_registrant(current_registrant),
|
||||
status: params[:decision] }
|
||||
end
|
||||
|
||||
private
|
||||
|
@ -96,11 +94,13 @@ module Api
|
|||
end
|
||||
|
||||
def verify_action
|
||||
if params[:template] == 'change'
|
||||
return true if @domain.registrant_update_confirmable?(verify_params[:token])
|
||||
elsif params[:template] == 'delete'
|
||||
return true if @domain.registrant_delete_confirmable?(verify_params[:token])
|
||||
end
|
||||
action = if params[:template] == 'change'
|
||||
@domain.registrant_update_confirmable?(verify_params[:token])
|
||||
elsif params[:template] == 'delete'
|
||||
@domain.registrant_delete_confirmable?(verify_params[:token])
|
||||
end
|
||||
|
||||
return unless action
|
||||
|
||||
render json: { error: 'Application expired or not found' }, status: :unauthorized
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue