Skip to content

An small API for relaying contact messages from a static page form to Drupal 8, after server-side Recaptcha validation.

License

Notifications You must be signed in to change notification settings

felipelube/drupal8-contact-message-relay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Drupal Contact Message Relay

An small API for relaying contact messages from a static page form to Drupal 8, after server-side Recaptcha validation.

Environment variables

  • RELAY_RECAPTCHA_SECRET_KEY: Google Recaptcha's secret key
  • RELAY_DRUPAL_CONTACT_MESSAGE_URL: Drupal rest endpoint for the contact_message entity
  • RELAY_DRUPAL_CONTACT_FORM_ID: the contact form id
  • RELAY_DRUPAL_AUTH_USER: username allowed to post in the rest endpoint
  • RELAY_DRUPAL_AUTH_PASSWORD: password of the user
  • RELAY_CORS_ORIGINS: origins to allow access via CORS (default is to allow all origins '*')

About

An small API for relaying contact messages from a static page form to Drupal 8, after server-side Recaptcha validation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published