Feature: Log in with a code by e-mail
Description
When a company requires a second factor for everyone and allows email 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 send and pass it to create as
email; without it the token answers 401 with /problems/. Codes are stored hashed in
the database, so any application server accepts them.
Impact
New table login_.