---
title: "Feature: Log in with a code by e-mail"
manual: "adsum by web-vision"
version: "main"
permalink: "https://docs.typo3.org/permalink/web-vision/adsum-monorepo:feature-1791189887@main"
source: "Changelog/1.0.0/Feature-1791189887-LogInWithACodeByEmail.rst"
rendered: "2026-11-07T02:01:32+00:00"
---

# Feature: Log in with a code by e-mail {#feature-1791189887}

## Description {#description}

When a company requires a second factor for everyone and allows `emailCode` in its security settings, a user
without an authenticator who holds neither `hr` nor `admin` receives a six-digit code by e-mail after the
password. The code is valid 10 minutes, works once, is void after five wrong entries and holds no link; at most three
codes are sent in 15 minutes. Apps request it with `sendLoginEmailCode` and pass it to `createToken` as
`emailCode`; without it the token answers 401 with `/problems/email-code-required`. Codes are stored hashed in
the database, so any application server accepts them.

## Impact {#impact}

New table `login_email_code`.
