Jump to content

[Module][Open Source] I accidentally made Email Verification module, assisted by Grok-3 for Prestashop v8.2.1


Recommended Posts

Hello PrestaShop Community,

I’m excited to share a free Email Verification Module for PrestaShop 8.2.1, designed to enhance customer registration security by requiring email verification. This module was born out of a need for an affordable solution. Thanks to the power of Grok3, created by xAI, I was able to develop and debug

this module efficiently!

Overview:
The `emailverification` module ensures new customers verify their email address before their account is activated. Upon registration at `yourshopurl.com/index.php?controller=authentication&create_account=1`, it sends a custom verification email with a unique link, sets the customer’s `active=0`, and activates the account (`active=1`) when the link is clicked. It integrates seamlessly with PrestaShop’s registration process, using server-side logic to avoid reliance on AJAX or JavaScript.

Key Features:
- Sends a verification email alongside PrestaShop’s default `account` email.
- Prevents login until email is verified via a secure token.
- Creates a `ps_email_verification` table to store customer IDs and tokens.
- Includes error handling for invalid/expired links with a custom error page.
- Supports English translations and customizable email templates.
- Lightweight and compatible with PrestaShop 8.x.

GitHub Repository:
You can find the full module, including all files and a detailed tutorial, on GitHub: https://github.com/kkula9999/emailverification. The repository includes the module’s code, folder structure, and a step-by-step guide to set it up.

Why This Module?:
Many email verification modules on the PrestaShop Addons Marketplace costy OR the free module was obsoleted, which can be prohibitive for small businesses or hobbyists. This free, open-source alternative delivers the same core functionality—secure email verification—without the hefty price tag. It’s a straightforward, server-side solution that I built to address my own needs and share with the community.

Known Issue:
After registration, the page does not automatically redirect to the homepage and remains on the registration page. This does not affect functionality, as the verification email is sent, and the account activates upon link click. There’s no ETA for a fix yet, but it’s on my radar. Contributions or suggestions via GitHub are welcome!

Future Plans:
If time permits, I plan to explore integrating a referral program module to complement this one, further enhancing customer engagement features for PrestaShop stores.

Powered By:
This module was developed with the assistance of Grok3, created by xAI, whose insights were invaluable in overcoming challenges like missing logs and form submission issues. (Tried on ChatGPT, it crashed my shop modules lol, so snapshot and backup is RECOMMENDED)

I’d love to hear your feedback, suggestions, or any issues you encounter. Feel free to contribute to the GitHub repository or share your experience here. Let’s make PrestaShop even better together!

Best regards,
kenixTrueno

2025-06-10 22_47_54-Login.png

2025-06-10 22_49_25-.png

2025-06-10 22_50_16-Inbox (1,836) - kkula9999@gmail.com - Gmail.png

2025-06-10 22_52_03-[Hikari Accessories] Welcome! - kkula9999@gmail.com - Gmail.png

2025-06-10 22_54_51-Window.png

2025-06-10 23_06_56-_ Untitled - Query - Navicat Premium.png

2025-06-10 23_07_52-_ Untitled - Query - Navicat Premium.png

Edited by kenixTrueno (see edit history)
Link to comment
Share on other sites

Very bad idea.
I'm a hacker, I create 10,000 accounts with fake addresses at gmail.com.
Gmail receives all these requests on fake accounts and bans your IP for spam.

Link to comment
Share on other sites

7 hours ago, Eolia said:

Very bad idea.
I'm a hacker, I create 10,000 accounts with fake addresses at gmail.com.
Gmail receives all these requests on fake accounts and bans your IP for spam.

:o so just leave the verification off in default in your opinion? any better idea for the bot registering? 

Link to comment
Share on other sites

12 hours ago, Eolia said:

I create 10,000 accounts with fake addresses at gmail.com.
Gmail receives all these requests on fake accounts and bans your IP for spam.

Sorry, but what's the context of the spamming with the email verification module? Is the same problem not with the default registration functionality of PS?

Link to comment
Share on other sites

If I understand, the shop will send 10000 emails to address who don't exist.

But seems exactly the same thing than welcome message of PS, so the problem seems not to be this module.

 

It's maybe better to verify if the address exist before send the email but again, seems not the function of this module.

 

If @Eolia can develop his message, I'm interesting too.

Link to comment
Share on other sites

Thanks for the advice, everyone!

and thanks for letting me know why there was no email verification module :) . and no verification needed.

I’ve also added a Captcha module to the site, but I’m still trying to figure out how to properly test it by simulating a bot or failed validation.

Also, does anyone know which file I should look into if the registration form submits but just stays on the same page without moving forward? Any tips would be really appreciated!

Thanks again!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...