Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,200 of 9,200 pages
About the help in other languages
All help pages

Two-factor and sign-in

What an organization decides about how staff sign in to an Exponential intranet - password rules, lockout after failed sign-ins, password expiry, two-step sign-in with sevenx_authentication_2fa, social login, sessions…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/businesses/intranets/two-factor-and-sign-in.md

On this page

Two-factor and sign-in

This page is for intranet owners and IT managers who decide how staff prove who they are. A stolen password is the most common way into a staff portal; this page lists the protections Exponential offers, which are on by default and which you switch on, and links to the guides for the work. It is an overview, not legal or audit advice.

Contents

  1. The layers
  2. Password rules
  3. Locking an account after failed sign-ins
  4. Two-step sign-in
  5. Social login
  6. Password expiry
  7. Sessions and signing out
  8. Records of sign-ins
  9. Decisions for the intranet
  10. Related pages

The layers

LayerOn by defaultWhere it is configuredGuide
Minimum password length 10 and a weak password checkyes (MinPasswordLength=10, WeakPasswordCheck=enabled in settings/site.ini)[UserSettings]Changing your password
Further password rules (upper case, digit, symbol ...)no, each rule is off by defaultsite.ini [PasswordSettings]same
Other sessions signed out after a password changeyes (EndOtherSessions=enabled)[PasswordSettings]same
Lock after N failed sign-insno (MaxNumberOfFailedLogin=0)[UserSettings]Security hardening
Two-step sign-inextension, opt-insevenxauthentication2fa.iniTwo-step sign-in
Password expiryextension ezmbpaexits own settingsezmbpaex
Network limitsweb serverApache, nginx, a VPNRestricting the administration

Password rules

Since 6.0.15 the same rules apply to every form that sets a password: registration, editing a user account, the password change page and the console command bin/php/resetuserpassword.php. A password change sends the user a "Your password was changed" mail without the password, and signs out the user's other sessions on their next request (Changing your password).

site.ini [PasswordSettings] adds rules, all off by default so an upgraded site keeps the rules it had: RequireLowercase, RequireUppercase, RequireDigit, RequireSymbol, MinCharacterClasses, ForbidLogin, ForbidCurrentPassword. Choose them with your security policy; longer passwords usually help staff more than complicated ones.

Locking an account after failed sign-ins

site.ini [UserSettings] MaxNumberOfFailedLogin locks an account after that many failed attempts. It ships as 0, which means off. TrustedIPList[] can exempt office addresses. Locked accounts are listed and unlocked in bulk on Users > Check user accounts (Check user accounts).

Warning

On an intranet reachable from the internet, set MaxNumberOfFailedLogin to a value that fits your policy. The sign-in page is the most attacked address of any site (Restricting the administration).

Two-step sign-in

The extension sevenx_authentication_2fa (listed in composer.json) adds a second step after the password: a 6-digit code from an authenticator app (TOTP, RFC 6238) or a code sent by e-mail (sevenx_authentication_2fa).

What staff see (Two-step sign-in):

  1. Sign in with user name and password as always.
  2. Enter the code from the app, or from the mail.
  3. Set it up once under My account > Two-step sign-in (/user2fa/setup) by scanning a QR code.

What the organization decides:

Setting ([General])Effect
Enforce2FA=disabled (default)staff opt in
Enforce2FA=enabled, DefaultMethod=totpeveryone without a second step sets up the app right after the password
Enforce2FA=enabled, DefaultMethod=emaileveryone without a second step gets e-mail codes at once

Every role that signs in needs the policies user2fa/setup and user2fa/verify. A key in settings/override/sevenxauthentication2fa.ini.append.php encrypts the authenticator secrets; losing it means everyone sets the app up again (Two-step sign-in, Turning it on).

Lost phones: an administrator sets the user's Two-step sign-in field to e-mail codes or Disabled and publishes; the user then sets the app up again. Plan who on the help desk may do this.

On the demonstration server two-step sign-in has been on since 6 October 2026 as opt-in (Two-step sign-in, On the demonstration server).

Social login

The same extension contains social login handlers for Google, Facebook, Twitter/X, Instagram, Meta and ID.me, described as skeletons ready to customize, plus a command line builder for more OAuth providers. Social login is off until [SocialLogin] Enabled=enabled; a user signing in this way still passes their own second step (sevenx_authentication_2fa, Use it). For a staff intranet a company directory is usually the better source of accounts (Directory sign-in and LDAP).

Password expiry

ezmbpaex sets how long a password is valid, can warn by mail before it expires, and can check new passwords against a regular expression (ezmbpaex). Whether forced expiry fits your policy is a decision for your security officer.

Sessions and signing out

A session ends site.ini [Session] SessionTimeout seconds after its last use; the default is 31104000, 360 days. Administrators can see who signed in recently and, with the database session handler, remove sessions one by one (Sessions). Shorter timeouts suit shared computers.

Records of sign-ins

The audit trail records sign-ins, failed sign-ins, account locks, role assignments and password resets in its access channel (The audit trail). Two-step sign-in writes every step to var/log/auth.log, never a code or a secret.

Decisions for the intranet

  • To do: Password rules chosen in [PasswordSettings].
  • To do: MaxNumberOfFailedLogin set; office addresses in TrustedIPList[] if wanted.
  • To do: Two-step sign-in: opt-in or required; administrators enrolled first.
  • To do: Help desk procedure for lost phones.
  • To do: Encryption key for the authenticator secrets stored safely and backed up.
  • To do: Session timeout decided.
  • To do: Network restriction decided (office only, VPN, or internet with sign-in).

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x