Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/endpoints.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ MFA method deactivation
***********************

| Deactivates the specified method. Depending on :doc: `settings` sends out an authentication code and requires confirmation.
| If you've set the ``CONFIRM_DISABLE_WITH_CODE`` option to ``True`` in the :doc: `settings` then passing the ``code`` in request payload is required.
| Note: You can deactivate a primary MFA method only if it's the last active method assigned to a user.
| However, you cannot deactivate a primary MFA method if there are other methods active.
| You should change primary method to a different one first, and then deactivate the method.
Expand Down Expand Up @@ -244,7 +245,7 @@ Login - second step (JWT example)
*************************
Generate new backup codes
*************************

| To use this Endpoint you've to set the ``ALLOW_BACKUP_CODES_REGENERATION`` option to ``True`` in the :doc: `settings`.
| If you've set the ``CONFIRM_BACKUP_CODES_REGENERATION_WITH_CODE`` option to ``True`` in the :doc: `settings` then passing the ``code`` in request payload is required.

.. list-table::
Expand Down Expand Up @@ -379,3 +380,4 @@ Change user's primary MFA method
"error": "MFA Method selected as new primary method is not active"
}
- **HTTP status:** ``400 BAD REQUEST``