Turn two-factor off
DELETE/admin/auth/totp
Removes the second factor and burns every recovery code with it.
A DELETE with a body — the password. Unusual, and deliberate: the
alternative is POST /totp/disable, which describes the effect less honestly
for the sake of a convention no client here enforces. The password is required
for the same reason it is on the recovery codes, with more at stake.
Request
Responses
- 204
- 400
- 401
- 403
- 409
Two-factor disabled
Malformed body
No session cookie, or invalid_credentials
account_suspended
Two-factor is not set up