UNPKG

adonis-recaptcha2

Version:
55 lines (49 loc) 1.37 kB
/* * adonis-recaptcha2 * * Source: https://git.io/JnNoc */ import Env from '@ioc:Adonis/Core/Env' import { RecaptchaConfig } from '@ioc:Adonis/Addons/Recaptcha2' const recaptchaConfig: RecaptchaConfig = { /* |-------------------------------------------------------------------------- | Site Key |-------------------------------------------------------------------------- | | The key for form | */ siteKey: Env.get('RECAPTCHA_SITE_KEY'), /* |-------------------------------------------------------------------------- | Secret Key |-------------------------------------------------------------------------- | | The shared key between your site and reCAPTCHA | * Don`t tell it to anyone | */ secretKey: Env.get('RECAPTCHA_SECRET_KEY'), /* |-------------------------------------------------------------------------- | SSL (default: true) |-------------------------------------------------------------------------- | | Optional | | Disable if you don't want to access the Google API via a secure connection | */ ssl: true, /* |-------------------------------------------------------------------------- | Views |-------------------------------------------------------------------------- | | Enable if you need use recaptcha in Views | */ views: false } export default recaptchaConfig