mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 01:11:43 +02:00
Handling contact verifications
This commit is contained in:
parent
44e42dd0fb
commit
637cabf95f
19 changed files with 612 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue