Two-factor authentication on PrestaShop to protect the back office

Switch on two-factor authentication for the PrestaShop back office, for you and the whole team, with a six-digit code, recovery codes and a free module.

Two-factor authentication on PrestaShop to protect the back office
Quick answer

Up to 9.2, PrestaShop does not offer two-factor authentication (2FA). With Easy Secure Login, a four-step wizard switches on a six-digit code shown by a free app, with ten recovery codes, and the rule can then become mandatory for the whole team.

VideoVideo in French

Sécurité PrestaShop : anti-robots, double authentification, clé d'accès | Easy Secure Login

The Gekkode YouTube channel publishes more videos about AI and code.

Subscribe to support the channel

An employee’s password opens the whole shop: orders, customer records, payment settings. If it is guessed, reused or stolen, nothing else stands between the intruder and the back office. Two-factor authentication, often shortened to 2FA, adds a step the thief cannot repeat, because it goes through the employee’s phone. It is the principle of the bank that has you approve an online purchase on your phone.

Up to version 9.2, PrestaShop does not offer it, according to a read-through of its code from 1.7.6 onwards, and a test of 9.1.5 points the same way. Easy Secure Login adds it, and its free version covers the whole team.

PrestaShop’s developers are preparing a two-factor authentication built into the back office for version 9.3. The code proposal that adds it had not yet been accepted on 30 November 2026, and the latest published version is 9.2.1, from 9 November 2026. The day PrestaShop provides it and you switch it on, the module leaves the team’s sign-in to PrestaShop, so that nobody has to enter two codes.

What two-factor authentication stops

After the password, the site asks for a confirmation that only the person controls. The official site Cybermalveillance.gouv.fr lists a code received by SMS or email, an app, a security key or biometrics, that is, a fingerprint or a face. The CNIL, in its recommendation on passwords, writes that two-factor authentication offers more security than a password alone.

OWASP, a non-profit foundation devoted to website security, goes further in its guide. Multi-factor authentication is presented there as by far the best defence against most password attacks. A stolen password is no longer enough, the phone is missing.

Switch on two-factor authentication for your own account

Start with yourself, so you do not lock yourself out. In the back office, open Easy Secure Login, the “My security” tab, then click “Activate” next to “App on your phone”. A four-step wizard opens. Throughout the module, two-factor authentication is called “two-step verification”.

The first step asks you to install a code app on your phone. The module names three, free and working offline: Google Authenticator, Microsoft Authenticator and 2FAS. The second step shows an image, a QR code, to scan with the app. If the phone cannot read it, the module also shows the key in plain letters, to type in by hand.

The wizard's “The image” step: a QR code to scan with the app and the key to type in if scanning is impossible
Second step: the image to scan, and the key to type in if the scan fails (screenshots of the French interface).

The third step asks you to copy the six-digit code shown by the app. It changes every thirty seconds: take the one displayed at the moment you type.

The wizard's “The code” step: six boxes to copy the app's code
Third step: the six-digit code from the app.

The fourth step gives ten recovery codes. Each opens the account once, the day the phone is missing. They are shown only at that moment, and creating new codes cancels the old ones.

The “Recovery codes” step with ten codes to copy, download or print
The ten recovery codes: keep them away from the phone.

At sign-in

After the password, the back-office sign-in page moves to step 2 of 2: “Enter the code from your phone”. A “This is my computer” box avoids asking for the code again for thirty days on that browser. A link remains below, “I do not have my phone”, and the Pro plan adds “Use my access key” to it.

Back-office sign-in page, step 2 of 2: six boxes for the code, “This is my computer” box and Enter button
The code step, after the password.

This step works from PrestaShop 1.7.6 to 9.x, even though the back-office sign-in page changed twice between these versions, in 1.7.7 and then in 9.0.

Require two-factor authentication for the whole team

The “Team” tab sets who has to use it. Three choices: each member decides for their own account, the whole team (the recommended choice), or only certain employee profiles, such as SuperAdmin or Logistician.

The “Two-step verification” card of the Team tab: choice between each member decides, the whole team or certain profiles, time allowed to set up and how long a computer is trusted
Who must use it, with what deadline, and for how long on a usual computer.

When the rule becomes mandatory, each member has a period to get set up: 7, 14 or 30 days, or none. They receive an email that explains why, how and until when. At sign-in, they are guided step by step (install the app, scan the image, copy a code, put their ten recovery codes away), which takes two minutes according to the module. You can only make the rule mandatory once your own account is protected.

The members table shows each person’s status: password only, phone code or access key. The “Help” button, at the end of each row, is for rescuing a colleague.

Table of the three team members: John Doe protected by code and access key, Claire Redaction protected by code, Test Equipe with password only
The members table: who is protected, and how.

When an employee loses their phone

The “Settings” tab lists three ways out, in order. One of the ten recovery codes opens the account once. Failing that, another administrator removes the employee’s protections from the “Team” tab. And if all the administrators lose their phone and their codes at the same time, the host or the shop’s technician switches off the team’s two-factor authentication from the server, with the instructions the module displays in the same place.

For members who cannot install an app, the Pro plan also accepts a code sent by email at each sign-in.

Free and Pro

The free version covers the team’s two-factor authentication by app, the recovery codes and help for locked-out members. The Pro plan, at €2 a month or €19.20 a year, adds the email code for the team, access keys for the team and two-factor authentication for your customers. Access keys, which replace the password with a fingerprint, a face or the phone’s code, have their own article.

Two-factor authentication stops the person who has stolen the password. Blocking passwords tried at random stops the person who is searching for it, and the guide to securing your PrestaShop shop brings the two together.

What to remember

  • In PrestaShop, from 1.7.6 to 9.2, an email and a password are enough to enter the back office.
  • A built-in two-factor authentication is in preparation for 9.3. As soon as it is switched on, the module lets PrestaShop manage the team.
  • Easy Secure Login adds a six-digit code, shown by a free app, from its free version.
  • The activation wizard has four steps and gives ten recovery codes.
  • The rule can become mandatory for the whole team, with a period for everyone to get set up.
  • Another administrator can rescue a member who has lost their phone, without going through the server.

The ZIP, the compatible PrestaShop versions (1.7.6 to 9.x) and the two plans are on the Easy Secure Login page.

Common errors

“This is my computer” ticked on a shared workstation The code is then no longer asked on that workstation for days. Tick the box only on your own computer.
Recovery codes never put away Without the phone and the codes, you can no longer get in on your own. Put the 10 codes away as soon as you activate the feature, away from the computer. Each one works once.
An employee who has lost their phone They do not have to wait: an administrator removes their two-factor authentication in a few seconds from the module, then the employee switches it back on.

PrestaShopSécurité

Damien Flandrin Web developer since 2010, creator of Gekkode and Email Impact. Every article is tested on a real project before publication. Contact
Newsletter

New tests, tutorials and projects, by e-mail.

Reproducible tests, versioned code, dated results. Never any spam.