user.views
Overview
Django and DRF views for user authentication, password management, and permission administration.
Classes
- AllAuthAdapterDispatchMixin
- AllAuthLoginView
- AllAuthMFAReauthenticateView
- AllAuthReauthenticateView
- AllAuthRecoveryCodesView
- AllAuthTwoFactorAuthView
- PermissionDeleteView
- PermissionOverviewView
- PermissionSaveView
- ResendWelcomeEmailView
- VuedaAllAuthViewAdapter
- VuedaForgotPasswordView
- VuedaPasswordChangeView
- VuedaResetPasswordView
- WhoIsView
totp_code
List the TOTP delivery methods for the user who is logging in or reauthenticating, or send them a code.
The user is the one in the pending two-factor login stage, or the signed-in user when no login is pending, which is the case while they reauthenticate with a second factor. GET returns the methods of the user's TOTP devices. POST sends a current code by the requested method, email or sms.
Signature
totp_code(request, args, kwargs)
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| request | yes | |||
| args | no | |||
| kwargs | no |
Source
.venv/lib/python3.12/site-packages/django/views/generic/base.py:97
Source
server/vueda/user/views.py