---
title: "Password rules, password expiry and login duration"
description: "Set your company's password rules, password expiry and history, how long a login lasts and how long browser-extension test tokens live."
url: https://www.surveytester.com/academy/en/company-admin-settings/password-rules/
language: en
type: how-to
audiences: ["SurveyTester Administrators", "Team Management"]
published: 2026-11-30
updated: 2026-11-30
tags: ["security", "password", "password policy", "password expiry", "password history", "login", "session", "timeout", "test token", "company"]
---

# Password rules, password expiry and login duration

_Company Admin Settings · SurveyTester Academy_

SurveyTester comes with sensible defaults: passwords need 8 characters with an upper-case letter, a lower-case
letter and a special character, they never expire, and a login lasts 30 days after its last use, so active users
never log in again. Many companies are fine with that. Others have their own security policy: longer passwords,
a new password every 90 days, no reuse of old passwords, or a fresh login every working day. In
**Company Settings** an administrator sets these rules for the whole company.

## Where to find the settings

1. Open **Administration** → **Company Settings**.
2. Scroll to **Login security**. Below the [two-step login](https://www.surveytester.com/academy/en/company-admin-settings/two-step-login) you find
   four groups: **Password rules**, **Password expiry and history**, **Login duration** and
   **Test tokens (browser extension)**.
3. Enter a value and leave the field: it is saved at once. Next to each field you see the default; **Use
   default** removes your company's own value again.

![Company Settings, section "Login security" with the groups Password rules, Password expiry and history, Login duration and Test tokens, each field with its default and the button "Use default"](https://www.surveytester.com/academy/_img/company-admin-settings/password-rules/en/security-settings.png "w=44rem | The security settings of a company")

Making a rule **weaker** (a shorter minimum length, a longer login, switching expiry off) asks for your password
first, see [Staying logged in safely](https://www.surveytester.com/academy/en/company-admin-settings/login-sessions). Making it stricter does not.

## Password rules

| Setting | Default | Allowed |
| --- | --- | --- |
| Minimum length | 8 | 8–64 |
| Minimum upper-case letters | 1 | 0–10 |
| Minimum lower-case letters | 1 | 0–10 |
| Minimum digits | 0 | 0–10 |
| Minimum special characters | 1 | 0–10 |

The rules apply to every **new** password: at the first login, after a password reset and when a user changes
the password. Existing passwords stay valid until they are changed, unless the check at login is on (see below). Letters of every language count (ü is a
lower-case letter), and any other character, the space included, is a special character.

### Checking existing passwords at login

Below the rules, the switch **Passwords are checked against these rules at every login** brings existing
passwords up to new rules at once. When it is on, SurveyTester checks the password a user types at the login
against the current rules. If it breaks them, the user is asked to choose a new password right after the
password (and the [two-step login](https://www.surveytester.com/academy/en/company-admin-settings/two-step-login) code), on the same page as an
expired password, and can only continue with a password that meets the rules. Users whose password already
meets the rules notice nothing. The switch is off by default; switching it off asks for your password.

Every page where a password is set shows the rules of the user's company and ticks them off while the user
types. SurveyTester checks the rules again on the server, so they cannot be bypassed.

![The new password field with the list "Your new password needs:", fulfilled rules ticked in green](https://www.surveytester.com/academy/_img/company-admin-settings/password-rules/en/password-rules-list.png "w=32rem | The rules while typing")

## Password expiry and history

| Setting | Default | Allowed |
| --- | --- | --- |
| New password every ... days | 0 = never | 0, 30–730 |
| Last passwords that may not be reused | 0 = off | 0–24 |

With an expiry:

- **7 days before**, the user gets an email "Your SurveyTester password expires soon" with the date.
- After the date, the next login asks for a **new password** right after the password (and the
  [two-step login](https://www.surveytester.com/academy/en/company-admin-settings/two-step-login) code). The old password is never accepted as the
  new one. Then the user is logged in as usual.
- The counting starts with the last password change. When the setting is switched on, nobody's password expires
  at once: SurveyTester counts from the day the feature was installed or from the last change.

![Login page "Your password has expired" with the fields New password and Repeat new password, the rule list and the button "Save and log in"](https://www.surveytester.com/academy/_img/company-admin-settings/password-rules/en/password-expired-step.png "w=32rem | A new password at the login")

The history remembers the last 24 passwords of every user, so it works at once when you switch it on.

## Login duration

| Setting | Default | Allowed |
| --- | --- | --- |
| Login ends after ... hours without use | 720 (30 days) | 1–8760 |
| Login ends at the latest after ... hours | 0 = no maximum | 0, 1–8760 |

- The first value is a **sliding** window: each use starts it again, so an active user stays logged in.
- The second value is a **fixed maximum**: the login ends after that many hours, even while the user works.
  For example, 12 means a fresh login every working day.

A shorter duration applies to logins that are already open: they end at their next request once they are too
old. It can take up to 5 minutes until all servers use a new value.

## Test tokens (browser extension)

| Setting | Default | Allowed |
| --- | --- | --- |
| Test token ends after ... minutes without use | 120 | 15–1440 |

When a tester starts or repeats a test from SurveyTester, the browser extension does not get the tester's login.
It gets a token for **this test only**, which ends when the test is finished or after this many minutes without
use. The project's company decides; tests already running keep the value they started with.

## Users in several companies

A user who belongs to several companies gets the **strictest** value of all their active companies, setting by
setting: the longest minimum length, the shortest login duration, the shortest expiry. A company without its own
value counts with the default.

## Invitation links

The link in the invitation email works **once** and for **7 days**. Sending the invitation again creates a new
link, and the older one stops working. If a user reports that the link no longer works, send the invitation
again in **Administration** → **Users**.

## Good to know

- **API service users** are not affected by the expiry; they log in with their password for every job, and their
  login ends after 60 minutes without use.
- **SurveyBots and test links** are not affected.
- **Single sign-on (SAML):** your identity provider handles passwords; these rules do not apply there.

## Key takeaway

The defaults keep logins long and simple; in **Company Settings** you can make passwords stricter, let them
expire, forbid reuse and shorten logins, and SurveyTester shows and enforces the rules on every password page.
