Skip to content

feat: Add Contact form#16

Open
ivanrdgz03 wants to merge 5 commits intoHackiitUGR:mainfrom
ivanrdgz03:dev
Open

feat: Add Contact form#16
ivanrdgz03 wants to merge 5 commits intoHackiitUGR:mainfrom
ivanrdgz03:dev

Conversation

@ivanrdgz03
Copy link
Contributor

I have added the contact form that was previously removed. I also added:

  • Support for notifying messages sent via a Telegram bot.
  • Use of a new library Zod for form sanitization.
  • Use of Google Recaptcha to prevent use by bots.
  • Rate limiting by IP, temporarily stored in a Map, although ideally this will be improved in the future with REDIS or similar.

The following environment variables are required:

  • TELEGRAM_BOT_TOKEN: Telegram bot token.
  • TELEGRAM_CHAT_ID: Chat to which the bot sends messages.
  • PUBLIC_RECAPTCHA_SITE_KEY: Recaptcha public key.
  • RECAPTCHA_SECRET_KEY: Recaptcha secret key.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant