Handling contact verifications

This commit is contained in:
tsoganov 2024-10-09 11:57:32 +03:00
parent 44e42dd0fb
commit 637cabf95f
19 changed files with 612 additions and 5 deletions

View file

@ -88,6 +88,9 @@ registrant_api_auth_allowed_ips: '127.0.0.1, 0.0.0.0' #ips, separated with comma
# Accreditation Center API
accr_center_api_auth_allowed_ips: '127.0.0.1, 0.0.0.0' #ips, separated with commas
# Webhooks
webhook_allowed_ips: '127.0.0.1, 0.0.0.0' #ips, separated with commas
# Shared key for REST-WHOIS Bounces API incl. CERT
rwhois_bounces_api_shared_key: testkey

View file

@ -9,6 +9,9 @@ en:
models:
contact:
attributes:
base:
verification_exists: Contact already verified
verification_error: Sending identification request failed
code:
blank: "Required parameter missing - code"
too_long_contact_code: "Contact code is too long, max 100 characters"

View file

@ -74,6 +74,7 @@ Rails.application.routes.draw do
collection do
get 'check/:id', to: 'contacts#check'
get 'search(/:id)', to: 'contacts#search'
post 'verify/:id', to: 'contacts#verify'
end
end
end
@ -372,6 +373,12 @@ Rails.application.routes.draw do
end
end
namespace :eeid do
namespace :webhooks do
resources :identification_requests, only: :create
end
end
# To prevent users seeing the default welcome message "Welcome aboard" from Rails
root to: redirect('admin/sign_in')
end