Skip to content

AllAuthRecoveryCodesView ​

Overview ​

View (GET) or regenerate (POST) the signed-in user's recovery codes, after the reauthentication VUEDA requires.

The session must hold a recent record of the user's required flow, the same check recent_auth_required applies, so a user with an MFA authenticator must have confirmed a second factor. Otherwise the view returns allauth's 401 reauthentication response, which lists the available flows. Every other response keeps allauth's format.

handle ​

Signature ​

handle(self, request, args, kwargs)

Parameters ​

NameTypeRequiredDefaultDescription
selfyes
requestyes
argsno
kwargsno

Source ​

server/vueda/user/views.py:771

Source ​

server/vueda/user/views.py:761