Skip to content

user.views ​

Overview ​

Django and DRF views for user authentication, password management, and permission administration.

Classes ​

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 ​

NameTypeRequiredDefaultDescription
requestyes
argsno
kwargsno

Source ​

.venv/lib/python3.12/site-packages/django/views/generic/base.py:97

Source ​

server/vueda/user/views.py