user

Enroll a user into totp

Changed on

Creates an initial setup for the user in the db. After this step, the user needs to verify they have a working totp setup with the "enable totp" endpoint. Requires the current password.

post/user/settings/totp/enroll

Request

  • Base URL
    /api/v1 (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/v1/user/settings/totp/enroll
  • Auth
    API key in header Authorization

Request body

passwordstring

Response

OK

enabledboolean

The totp entry will only be enabled after the user verified they have a working totp setup.

secretstring
urlstring

The totp url used to be able to enroll the user later

Changes

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status