---
url: "https://vueda.dev/v3/reference/api/py/vueda.user.views.md"
title: "user.views"
---

# user.views

## Overview

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

## Classes

- [AllAuthAdapterDispatchMixin](/v3/reference/api/py/vueda.user.views/AllAuthAdapterDispatchMixin.md)
- [AllAuthLoginView](/v3/reference/api/py/vueda.user.views/AllAuthLoginView.md)
- [AllAuthMFAReauthenticateView](/v3/reference/api/py/vueda.user.views/AllAuthMFAReauthenticateView.md)
- [AllAuthReauthenticateView](/v3/reference/api/py/vueda.user.views/AllAuthReauthenticateView.md)
- [AllAuthRecoveryCodesView](/v3/reference/api/py/vueda.user.views/AllAuthRecoveryCodesView.md)
- [AllAuthTwoFactorAuthView](/v3/reference/api/py/vueda.user.views/AllAuthTwoFactorAuthView.md)
- [PermissionDeleteView](/v3/reference/api/py/vueda.user.views/PermissionDeleteView.md)
- [PermissionOverviewView](/v3/reference/api/py/vueda.user.views/PermissionOverviewView.md)
- [PermissionSaveView](/v3/reference/api/py/vueda.user.views/PermissionSaveView.md)
- [ResendWelcomeEmailView](/v3/reference/api/py/vueda.user.views/ResendWelcomeEmailView.md)
- [VuedaAllAuthViewAdapter](/v3/reference/api/py/vueda.user.views/VuedaAllAuthViewAdapter.md)
- [VuedaForgotPasswordView](/v3/reference/api/py/vueda.user.views/VuedaForgotPasswordView.md)
- [VuedaPasswordChangeView](/v3/reference/api/py/vueda.user.views/VuedaPasswordChangeView.md)
- [VuedaResetPasswordView](/v3/reference/api/py/vueda.user.views/VuedaResetPasswordView.md)
- [WhoIsView](/v3/reference/api/py/vueda.user.views/WhoIsView.md)

## `totp_code` {#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-signature}

`totp_code(request, args, kwargs)`

#### Parameters {#totp_code-parameters}

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| <span id="totp_code-param-request">request</span> |  | yes |  |  |
| <span id="totp_code-param-args">args</span> |  | no |  |  |
| <span id="totp_code-param-kwargs">kwargs</span> |  | no |  |  |

### Source {#totp_code-source}

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

## Source

`server/vueda/user/views.py`
