---
title: "Two-step login (MFA) with an email code"
description: "Require a second login step for your company: after the password, every user enters a one-time code sent by email."
url: https://www.surveytester.com/academy/en/company-admin-settings/two-step-login/
language: en
type: how-to
audiences: ["SurveyTester Administrators", "Team Management"]
published: 2026-11-19
updated: 2026-11-26
tags: ["security", "login", "mfa", "multi-factor authentication", "two-factor", "2fa", "email code", "company"]
---

# Two-step login (MFA) with an email code

_Company Admin Settings · SurveyTester Academy_

A password alone is a single point of failure: it is reused on other sites, guessed, or phished. Once it leaks,
anyone can open your projects, survey links and issues. With **two-step login**, also known as **multi-factor
authentication (MFA)** or two-factor authentication (2FA), a stolen password is no longer
enough: after the password, SurveyTester sends a one-time code to the user's email address, and only the code
opens the session.

## What two-step login does

- After the right password, the user sees a second page and gets an email with an **8-character code**, for
  example `K7QM-4XTB`. Upper or lower case does not matter.
- The code is valid for **10 minutes** and works **once**. After **5 wrong tries** the user starts again with the
  password.
- The user can request a **new code** after 30 seconds (up to 3 times per login). Only the newest code works.
- The email names the IP address and browser of the login, so a user who did not try to log in knows that
  the password must be changed.

![Placeholder: screenshot of the login page step "Enter your login code" with the masked email address, the code field, Confirm and "Send a new code"](https://www.surveytester.com/academy/_img/company-admin-settings/two-step-login/en/login-code-step.png "w=36rem | The second login step")

## Step by step

1. Open **Administration** → **Company Settings**.
2. In **Login security**, switch on **Two-step login (email code)**.
3. A dialog asks whether to switch it on. Click **Switch on and log out all users**: all users of your company,
   **you included**, are logged out at once, so every next login goes through the code. **Cancel** leaves the
   setting off.
4. Log in again: enter your password, then the code from the email.

![Placeholder: screenshot of Company Settings with the "Login security" section and the switched-on "Two-step login (email code)" switch](https://www.surveytester.com/academy/_img/company-admin-settings/two-step-login/en/company-settings-switch.png "w=44rem | Switching two-step login on")

![Placeholder: screenshot of the dialog "Switch on two-step login?" with the logout warning and the buttons Cancel and "Switch on and log out all users"](https://www.surveytester.com/academy/_img/company-admin-settings/two-step-login/en/mfa-confirm-dialog.png "w=36rem | Confirming the switch")

To switch it off again, use the same switch. Nobody is logged out when you switch it off.

## Users in several companies

A user can belong to more than one company. As soon as **one** of these companies requires two-step login, the
user enters the code at every login, whichever company they work in afterwards. When you add an existing user
to your company, or reactivate one, that user is logged out once so that the next login uses the code.

## What is not affected

- **The browser extension** never logs in on its own: it receives its access from a session that is already
  logged in. Tests that run in the extension continue when you switch two-step login on.
- **SurveyBots and test links** do not log in as a person and need no code.
- **Single sign-on (SAML)**: your identity provider is in charge of the login and its second factor.

![Placeholder: screenshot of the email "Your login code" with the code in a large box, the validity note and the IP / browser line](https://www.surveytester.com/academy/_img/company-admin-settings/two-step-login/en/login-code-email.png "w=36rem | The email with the code")

## Good to know

- The code goes to the email address of the user account. A user without access to that mailbox cannot log in;
  an administrator can change the address in **Administration** → **Users**.
- Codes and login tokens are stored only as hashes, never in plain text.
- If someone keeps requesting codes with the right password, SurveyTester stops sending after 5 login emails in
  15 minutes.

## Key takeaway

One switch in Company Settings protects every account of your company against stolen passwords; the browser
extension and running tests keep working.
