8000 Added smtp email support and email verification for user auth by cameronapak · Pull Request #52 · cameronapak/freedom-stack · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Added smtp email support and email verification for user auth #52

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Jan 26, 2025

Conversation

cameronapak
Copy link
Owner
@cameronapak cameronapak commented Jan 26, 2025

Added:

  • Send email via smtp
  • Email verification for user sign up (optional)
  • Added honeypot input in sign up to prevent bots

- Integrated Nodemailer for sending emails with a configurable SMTP transport
- Added email-related environment variables to .env.example
- Created email action and library for sending emails
- Included TypeScript types for Nodemailer
- Configured email sending with Resend as the SMTP provider
- Added comprehensive email configuration section to README
- Included environment variables for SMTP email settings
- Documented email sending methods (form actions and programmatic)
- Provided recommended email service providers
- Enhanced documentation for email functionality in the project
- Integrated email sending functionality in the sign-up handler
- Send a welcome email to new users upon successful registration
- Imported sendEmail utility from the email library
- Configured a simple welcome message for new sign-ups
- Implemented a honeypot field in the sign-up form to prevent bot registrations
- Added middleware validation in the auth action to reject sign-ups with the honeypot field
- Introduced a hidden input field in the sign-up page to catch automated bot submissions
- Added email verification configuration in auth library
- Created a new verify-email page for unverified users
- Updated dashboard to redirect unverified users to email verification
- Modified Verification table to include updatedAt column
- Removed manual email sending from sign-up action
- Added BETTER_AUTH_EMAIL_VERIFICATION environment variable
- Updated .env.example with new configuration option
- Modified auth library to conditionally send email verification
- Updated dashboard to respect email verification configuration
- Simplified README email provider recommendations
@cameronapak cameronapak self-assigned this Jan 26, 2025
Copy link
netlify bot commented Jan 26, 2025

Deploy Preview for freedom-stack ready!

Name Link
🔨 Latest commit 9780b9c
🔍 Latest deploy log https://app.netlify.com/sites/freedom-stack/deploys/67968dfab784cb0008b07c27
😎 Deploy Preview https://deploy-preview-52--freedom-stack.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@cameronapak cameronapak linked an issue Jan 26, 2025 that may be closed by this pull request
@cameronapak cameronapak merged commit 980fd7e into main Jan 26, 2025
4 checks passed
@cameronapak cameronapak deleted the cam/mailer branch January 26, 2025 19:34
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.

Email provider. Which one?
1 participant
0