Premium Modules Marketplace — PrestaShop & WordPress

Easy Secure Login protects how people sign in to your shop and your back office. It blocks passwords tried at random, stops robots without a captcha, and lets your customers and your team sign in more safely: with a code, an access key or a link received by e-mail.

This guide is for merchants, not developers. Every protection is optional: you choose what you switch on, and a protection switched off gives back the original PrestaShop sign-in. Version described: 1.0.0.

1. What the module does

The protections

  • Blocking of passwords tried at random: after several wrong passwords, the targeted account and the address that keeps trying are blocked for a few minutes.
  • Robot trap: an invisible trap stops robots on the sign-in and the account creation; with Pro, also on the contact, newsletter and forgotten password forms, and on the back office sign-in.
  • Two-step verification: after the password, a 6-digit code shown by a free phone app, for the team; with Pro, also for the customers who want it.
  • Access key (Pro): sign-in with the fingerprint, the face or the code of the device, without a password.
  • Sign-in link by e-mail (Pro): the customer receives a link and signs in without a password.

Compatibility and requirements

  • PrestaShop 1.7.6 to 9.x, PHP 7.1 or later.
  • Classic and Hummingbird themes.
  • Access keys need the shop and the back office served over https (browsers also accept them on a "localhost" test address).
  • Module in English, French, German, Spanish, Italian and Polish.

2. Installation and setup

  1. In PrestaShop, open Modules > Module Manager, click "Upload a module" and select the ZIP, without unzipping it.
  2. Open Easy Secure Login ("Configure" button): the setup opens.

The setup in four steps

  1. What to protect: tick the shop (your customers), the back office (you and your team), or both.
  2. Protections: tick the ones you want. The password blocking and the robot trap are ticked by default, because they are invisible to your customers; everything else is optional.
  3. Summary: read what will be switched on, then save.
  4. Ready: if you chose two-step verification for the team, the module offers to protect your own account right away (2 minutes).

The "Skip the setup" link goes straight to the dashboard. The setup opens again from the Settings tab.

Setup, step 1: what to protect
Step 1: tick the shop, the back office, or both.
Setup, step 2: the protections
Step 2: every protection is optional; the recommended ones are already ticked.
Setup, last step: ready
The last step sums up what is on and offers to protect your own account.

Licence and Pro plan

The module works without a licence, as the free version. For Pro (€2 a month or €19.20 a year), take the plan on modules.gekkode.com, then paste the licence key of your account into the module: from the first step of the setup ("Connect my licence") or at the bottom of the dashboard. The page reloads and the Pro options unlock right away.

Window to connect a licence
"Connect your licence": paste the key of your account on modules.gekkode.com.

Every "Pro" badge of the module opens the "Free or Pro" comparison, with the link to the plan and the "I already have a licence" button.

Free or Pro comparison window
The "Free or Pro" window, opened from any "Pro" badge.

3. The dashboard

One sentence says where you stand, for example "Your choices are in place". Three cards then sum up your customers, your team and the automatic defences; an icon marks what is on and what is off, and the "Set up" link of each card leads to the matching tab. The to-do list reminds you of what is left, such as protecting your own account.

Dashboard of the module
The dashboard: one sentence, three cards, the to-do list and the last seven days.

4. Your customers (Customers tab)

Three safer ways to sign in, to switch on one by one (Pro).

Customers tab
The Customers tab, with a preview of what your customers see.

On the sign-in page, the customer can ask for a link by e-mail. The link works once, for a few minutes. The message shown is the same whether the address matches an account or not: nobody can use it to find out who your customers are.

Shop sign-in page with the new buttons
The sign-in page of the shop: "Sign in with an access key" and "Receive a sign-in link by e-mail".
E-mail with the sign-in link
The e-mail the customer receives: one button, valid once.

Access key

The customer adds an access key from their account, under Sign-in and security, then signs in with the fingerprint, the face or the code of their phone or computer. No more password to remember, or to have stolen.

Sign-in and security page of a customer account
"Sign-in and security" in the customer account: access keys, two-step verification, signed-in devices.

Two-step verification

Each customer who wants it switches it on from the same page: they install a free app (Google Authenticator, Microsoft Authenticator, 2FAS…), scan a picture, copy a code and keep their 10 recovery codes. Nothing is imposed on the other customers.

Shop sign-in, code step
At sign-in, the customer types the 6-digit code shown by their app.

A customer who lost their phone and their recovery codes gets help from their page in the back office (Customers > Customers, "Sign-in and security" card): first make sure you are talking to the right person, then remove their two-step verification.

Sign-in and security card on a customer page of the back office
The "Sign-in and security" card on the customer page of the back office.

5. Your team (Team tab)

Two-step verification

Switch it on, then choose the rule: mandatory for everyone, with 14 days to get set up and reminders by e-mail, or left to each member. When it is mandatory, a member who is not set up yet is guided before entering: install the app, scan a picture, copy a code, store their 10 recovery codes. It takes 2 minutes.

Team tab
The Team tab: the rule, the options and where each member stands.
Back office sign-in, code step
At the back office sign-in, the code is asked after the password.

With Pro, a member who cannot install an app receives their code by e-mail, and everyone can add an access key to enter without a password or a code.

Back office sign-in page with the access key button
"Sign in with an access key" on the back office sign-in page.
E-mail with a sign-in code for a team member
The code by e-mail, for a member without an app.

My security

Each employee has their own My security page, open even without access to the modules. There they switch two-step verification on, see how many recovery codes are left, create new ones, add an access key (Pro) and find their remembered devices.

My security page
"My security": the page of each employee.
Window to switch two-step verification on
Switching two-step verification on: scan the picture with the app, then type the code.

Helping a member who lost everything

If a member lost their phone and their recovery codes, an administrator removes their protections from the Team tab. That member then enters with the password alone, is told by e-mail, and can get set up again.

6. Blocks and robots

Passwords tried at random

Set the number of attempts and the length of the block, separately for a customer, for a team member and for one IP address. By default: 5 attempts then 15 minutes for a customer, 5 attempts then 30 minutes for the team, 20 attempts then 60 minutes for an address. The block lifts by itself; you can also unblock someone straight away.

Blocks and robots tab
Who is blocked right now, and the rules of the two automatic defences.
Shop sign-in page with the blocked message
What a blocked person reads: it never says whether the account exists.

Robot trap

The trap is invisible to your customers: no pictures to click, no box to tick. It spots what only robots do, such as filling in a hidden field or sending a form faster than anyone could read it. Choose the protected forms: sign-in and account creation; with Pro, contact, newsletter, forgotten password and the back office sign-in.

Invisible captcha of Cloudflare

From version 1.1.0, Cloudflare Turnstile can add a second barrier on the same forms. It checks in silence that a person uses the browser: your customers have nothing to click, except in a rare doubt, when Cloudflare shows a box just above the button. It is off by default.

Setting it up takes a few minutes. The Cloudflare pictures show its dashboard in French: yours shows the same screens in your language.

1. Create the widget in Cloudflare. A free Cloudflare account is enough, and your shop does not need to use Cloudflare otherwise. The Open Turnstile link of the module’s card opens the right page.

a. On the page of the Turnstile widgets, click the button that adds a widget manually (on the picture: Ajouter le widget manuellement), not the assistant.

Turnstile widgets page of Cloudflare
The Turnstile page of Cloudflare. Your other widgets, if any, appear in the list (blurred here).

b. Give the widget a name, for example the name of your shop. Under the hostnames, type the domain of your shop, without https://, then choose the line that adds it as a custom hostname. If your shop already goes through Cloudflare, you can also pick it from the list.

Widget name and hostname
The name of the widget and the domain of the shop, added as a custom hostname.

c. Under the widget mode, choose Invisible. Leave the pre-clearance option off, then click the create button (on the picture: Créer).

Widget mode: Invisible
The Invisible mode. Cloudflare reminds you to mention its privacy addendum in your privacy policy.

d. Cloudflare shows the two keys of the widget: the site key and the secret key. A click on a key copies it. You can show them again later from the list of widgets.

Site key and secret key of the widget
The two keys of the widget. The secret key is hidden here: never show it to anyone.

2. Paste the keys into the module. In the Blocks and robots tab, switch on the Invisible captcha of Cloudflare card, then paste the site key and the secret key into their fields.

Captcha card with the two keys
The card switched on, the two keys pasted. The secret key shows as dots.

3. Test the keys, then save. Click Test the keys. When the card says “The two keys work. Save to keep them.”, click Save, in the card. The captcha only starts once its keys passed the test: a wrong key never refuses a customer.

Keys test passed
The test passed: only saving remains.
Captcha on after saving
Once saved, the captcha is on. The saved secret key is no longer shown: leave the field empty to keep it.

If Cloudflare does not answer your server, the invisible trap keeps protecting the forms. Cloudflare receives the internet address and details of the browser of the people who fill in these forms: mention it in your privacy policy. For the invisible mode, Cloudflare also asks you to mention its Turnstile privacy addendum there.

Addresses always allowed or always blocked (Pro)

An IP address that is always allowed is never blocked, the one of your office for example. An address that is always blocked can no longer sign in.

7. Activity

The history lists the sign-ins, the blocks, the robots stopped and the settings changes, with filters. It keeps 90 days; with Pro, one year, and an "Export" button.

Activity tab
The history, with its filters.

8. Settings

There you open the setup again, set the e-mail alerts (new device, blocked account, wave of robots stopped), adapt the module to your theme (see chapter 9) and find the emergency access.

Settings tab
The settings: alerts, history, several shops and the emergency access.

Emergency access

It is only needed if every administrator loses their phone and their recovery codes at the same time. In this order:

  1. a recovery code;
  2. another administrator, who removes your protections from the Team tab;
  3. your host or your technician, who switches two-step verification of the team off from the server, following the "Instructions for the technician" of the Settings tab.

Switching it off from the server also switches off the robot trap of the back office sign-in. Back in the back office, switch two-step verification on again in the Team tab, and the trap in the Blocks and robots tab.

An e-mail tells you when the emergency access was used.

New device e-mail
The "new device" alert: one button signs every device out.

9. Adapt to your theme

The buttons and the pages of the module use the classes of PrestaShop: this way, they take the look of your theme. Some themes change these classes, or open their own sign-in window. A button can then look like plain text, or the window of the theme can miss the ways in without a password. From version 1.0.4, the Look on the shop card of the Settings tab corrects this without touching your theme.

From version 1.1.0, this card takes the full width of the tab. It holds the option for the windows of the theme, a CSS editor with its preview, and a reference for the person who maintains your theme.

Sign-in windows of the theme

Some themes open their own sign-in window from the header, or a side panel. These windows leave no room for the modules: the buttons of the module are missing there. Switch on Also show the ways in without a password under the sign-in forms of the theme (pop-up, side panel): the buttons "Sign in with an access key" and "Receive a sign-in link by e-mail" then come under each sign-in form of the theme, on every page, even in a window the theme opens later. Once signed in, the customer comes back to the page they were on.

Nothing shows when neither the sign-in link nor the access keys are on, or when the shop has no Pro licence.

Under the switch, the card shows the real effect of the option: "On", "Off", or "No effect for now" as long as neither the sign-in link nor the access keys are on, or without a Pro licence.

CSS of the shop

To correct a small display problem, such as a button without its outline or a text in capitals, write a few lines of CSS in the CSS of the shop editor. The shop adds them to all its pages, after the styles of the theme. They stay in place when you update the theme or the module. The editor takes up to 20,000 characters and counts them as you type.

  • Insert a selector adds an empty rule for a class of the module. A picture next to each class shows the part of the shop it targets. Ready snippets adds a common correction, for example an outline that always shows.
  • A check lists, line by line, a closing brace too many or braces never closed, a comment "/*" never closed, a style or script tag (removed when saving) and a rule that also targets the theme, such as body. It only helps: it never blocks the saving.
  • The preview shows the real sign-in page of your shop, with its theme, its CSS and the CSS of the editor (not saved yet), on a computer or a phone: click Show the real page of the shop to open it. My account shows when you are signed in as a customer on the shop, in the same browser. With Inspect on, hover an element of the preview, then click: its selector goes into the editor.
  • Cancel the changes goes back to the saved CSS. Save applies it to the shop.

After saving, clear the cache of PrestaShop (Advanced Parameters > Performance), and the one of your cache module if you have one: otherwise the shop can keep showing the former CSS. When saving, the style and script tags and the HTML comment marks are removed.

/* Text of the buttons in normal letters */
.esl-login-more .esl-wide { text-transform: none; letter-spacing: normal; }
/* Colour of the separator */
.esl-or { color: #6b7280; }

The classes of the module stay the same from one version to the next:

ClassElement
.esl-login-moreBlock under a sign-in form: the separator and the buttons
.esl-orSeparator "or, without a password"
.esl-wideButtons "Sign in with an access key" and "Receive a sign-in link by e-mail"
.esl-labelText of a button, next to its icon
.esl-icoIcon of a button
#esl-security-link, #esl_security_main_linkLink "Sign-in and security" of the customer account (Classic, Hummingbird)
.esl-pagePages of the module: sign-in link, two-step verification, "Sign-in and security"

CSS variables

From version 1.1.0, seven variables set the block under the forms without writing a selector. Declare them in :root for the whole shop, or on .esl-login-more:

:root {
  --esl-button-transform: none;
  --esl-button-radius: 8px;
}
VariableDefaultRole
--esl-block-width420pxWidth of the block under the form
--esl-gap12pxSpace between the separator and the buttons
--esl-button-transformthe one of the themeCase of the text of the buttons (none, uppercase)
--esl-button-radiusthe one of the themeCorners of the buttons
--esl-button-borderthe one of the themeOutline of the buttons
--esl-or-opacity0.75Strength of the separator
--esl-icon-size20pxSize of the icons of the buttons

Unset, they change nothing on screen: the width, the space, the separator and the icons keep the values of the module, and the buttons keep the look of your theme. The CSS variables tab of the Reference for the integrator lists them, with a button to copy each one. A theme can also declare them in its own CSS.

For your developer: overriding a template

This part is for the person who maintains your theme. To change the HTML of the module, copy one of its templates into your theme, under themes/<your theme>/modules/easysecurelogin/, at the same path, and edit the copy. This is the standard way of PrestaShop: updates of the module never overwrite the copy. With a child theme, put the copy in the folder of the child theme. Then clear the cache of PrestaShop.

Template of the moduleWhat it shows
views/templates/hook/front-login-buttons.tplThe buttons under a sign-in form
views/templates/hook/front-account-link.tplThe link "Sign-in and security" of the customer account
views/templates/front/security.tplThe page "Sign-in and security"
views/templates/front/link.tplThe pages of the sign-in link
views/templates/front/setup.tplSwitching two-step verification on
views/templates/front/verify.tplThe code asked at sign-in

In the card, the Templates of the theme tab of the Reference for the integrator gives the path of each copy, with a Copy the path button.

For example, the copy of the buttons goes to themes/<your theme>/modules/easysecurelogin/views/templates/hook/front-login-buttons.tpl. Keep the data-esl-… attributes and the names of the form fields: the script and the forms of the module need them. A copy does not receive the changes of the next versions: compare it with the template of the module after each update.

10. Frequently asked questions

What happens if I disable the module?

The PrestaShop sign-in goes back to the original one: the password alone. The settings and the history stay in place as long as you do not uninstall the module.

What about sign-ins through a social network?

They go through their own module: two-step verification and access keys do not apply to them.

What about personal data?

A customer's data linked to the module is exported and erased by the official PrestaShop GDPR module, with the rest of their account.