Settings
This package contains all views related to settings
- Webauthn
- Authenticate Modify MFA View
AuthenticateModifyMfaViewAuthenticateModifyMfaView.__init__()AuthenticateModifyMfaView.as_view()AuthenticateModifyMfaView.content_typeAuthenticateModifyMfaView.dispatch()AuthenticateModifyMfaView.extra_contextAuthenticateModifyMfaView.form_classAuthenticateModifyMfaView.form_invalid()AuthenticateModifyMfaView.form_valid()AuthenticateModifyMfaView.get()AuthenticateModifyMfaView.get_context_data()AuthenticateModifyMfaView.get_form()AuthenticateModifyMfaView.get_form_class()AuthenticateModifyMfaView.get_form_kwargs()AuthenticateModifyMfaView.get_initial()AuthenticateModifyMfaView.get_prefix()AuthenticateModifyMfaView.get_success_url()AuthenticateModifyMfaView.get_template_names()AuthenticateModifyMfaView.http_method_namesAuthenticateModifyMfaView.http_method_not_allowed()AuthenticateModifyMfaView.initialAuthenticateModifyMfaView.options()AuthenticateModifyMfaView.post()AuthenticateModifyMfaView.prefixAuthenticateModifyMfaView.put()AuthenticateModifyMfaView.render_to_response()AuthenticateModifyMfaView.response_classAuthenticateModifyMfaView.setup()AuthenticateModifyMfaView.success_urlAuthenticateModifyMfaView.template_engineAuthenticateModifyMfaView.template_nameAuthenticateModifyMfaView.view_is_async
- Delete User Fido Key View
DeleteUserFidoKeyViewDeleteUserFidoKeyView.__init__()DeleteUserFidoKeyView.as_view()DeleteUserFidoKeyView.content_typeDeleteUserFidoKeyView.dispatch()DeleteUserFidoKeyView.extra_contextDeleteUserFidoKeyView.get()DeleteUserFidoKeyView.get_context_data()DeleteUserFidoKeyView.get_template_names()DeleteUserFidoKeyView.http_method_namesDeleteUserFidoKeyView.http_method_not_allowed()DeleteUserFidoKeyView.options()DeleteUserFidoKeyView.post()DeleteUserFidoKeyView.render_to_response()DeleteUserFidoKeyView.response_classDeleteUserFidoKeyView.setup()DeleteUserFidoKeyView.template_engineDeleteUserFidoKeyView.template_nameDeleteUserFidoKeyView.view_is_async
- Get MFA Challenge View
- Register User Fido Key View
RegisterUserFidoKeyViewRegisterUserFidoKeyView.__init__()RegisterUserFidoKeyView.as_view()RegisterUserFidoKeyView.content_typeRegisterUserFidoKeyView.context_object_nameRegisterUserFidoKeyView.dispatch()RegisterUserFidoKeyView.extra_contextRegisterUserFidoKeyView.fieldsRegisterUserFidoKeyView.form_classRegisterUserFidoKeyView.form_invalid()RegisterUserFidoKeyView.form_valid()RegisterUserFidoKeyView.get()RegisterUserFidoKeyView.get_context_data()RegisterUserFidoKeyView.get_context_object_name()RegisterUserFidoKeyView.get_form()RegisterUserFidoKeyView.get_form_class()RegisterUserFidoKeyView.get_form_kwargs()RegisterUserFidoKeyView.get_initial()RegisterUserFidoKeyView.get_object()RegisterUserFidoKeyView.get_prefix()RegisterUserFidoKeyView.get_queryset()RegisterUserFidoKeyView.get_slug_field()RegisterUserFidoKeyView.get_success_url()RegisterUserFidoKeyView.get_template_names()RegisterUserFidoKeyView.http_method_namesRegisterUserFidoKeyView.http_method_not_allowed()RegisterUserFidoKeyView.initialRegisterUserFidoKeyView.modelRegisterUserFidoKeyView.options()RegisterUserFidoKeyView.pk_url_kwargRegisterUserFidoKeyView.post()RegisterUserFidoKeyView.prefixRegisterUserFidoKeyView.put()RegisterUserFidoKeyView.query_pk_and_slugRegisterUserFidoKeyView.querysetRegisterUserFidoKeyView.render_to_response()RegisterUserFidoKeyView.response_classRegisterUserFidoKeyView.setup()RegisterUserFidoKeyView.slug_fieldRegisterUserFidoKeyView.slug_url_kwargRegisterUserFidoKeyView.success_urlRegisterUserFidoKeyView.template_engineRegisterUserFidoKeyView.template_nameRegisterUserFidoKeyView.template_name_fieldRegisterUserFidoKeyView.template_name_suffixRegisterUserFidoKeyView.view_is_async
- Authenticate Modify MFA View
Dismiss Tutorial View
- class integreat_cms.cms.views.settings.dismiss_tutorial_view.DismissTutorial(**kwargs)[source]
Bases:
ViewView to mark a tutorial dismissed for the current user. If it was marked dismissed it should not be shown again automatically.
- __init__(**kwargs)[source]
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- http_method_names = ['post'][source]
The list of HTTP method names that this view will accept. Since this changes the database, we want to have the csrf protection of post views.
- post(request: HttpRequest, *args: Any, **kwargs: Any) JsonResponse[source]
Marks a tutorial as dismissed
- Parameters:
request (HttpRequest) – The current request
*args (Any) – The supplied arguments
**kwargs (Any) – The supplied keyword arguments
- Returns:
The rendered template response
- Return type:
JsonResponse
Totp Delete View
- class integreat_cms.cms.views.settings.totp_delete_view.TOTPDeleteView(**kwargs)[source]
Bases:
TemplateViewView to delete the TOTP key and disconnect authenticators.
- __init__(**kwargs)[source]
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- get(request: HttpRequest, *args: Any, **kwargs: Any) HttpResponse[source]
Render confirmation view for TOTP deletion
- Parameters:
request (HttpRequest) – The current request
*args (Any) – The supplied arguments
**kwargs (Any) – The supplied keyword arguments
- Returns:
The rendered template response
- Return type:
HttpResponse
- get_template_names()[source]
Return a list of template names to be used for the request. Must return a list. May not be called if render_to_response() is overridden.
- post(request: HttpRequest, *args: Any, **kwargs: Any) HttpResponse[source]
Delete the TOTP key of an user.
- Parameters:
request (HttpRequest) – The current request
*args (Any) – The supplied arguments
**kwargs (Any) – The supplied keyword arguments
- Returns:
A redirection to the account settings
- Return type:
HttpResponse
- render_to_response(context, **response_kwargs)[source]
Return a response, using the response_class for this view, with a template rendered with the given context.
Pass response_kwargs to the constructor of the response class.
- response_class[source]
alias of
TemplateResponse
- template_name = 'settings/delete_totp.html'[source]
The template to render (see
TemplateResponseMixin)
Totp Register View
- class integreat_cms.cms.views.settings.totp_register_view.TOTPRegisterView(**kwargs)[source]
Bases:
TemplateViewView to register a TOTP authenticator.
- __init__(**kwargs)[source]
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- get(request: HttpRequest, *args: Any, **kwargs: Any) HttpResponse[source]
Initialize the registration for the authentication application.
- Parameters:
request (HttpRequest) – The current request
*args (Any) – The supplied arguments
**kwargs (Any) – The supplied keyword arguments
- Returns:
A redirection to the account settings
- Return type:
HttpResponse
- get_template_names()[source]
Return a list of template names to be used for the request. Must return a list. May not be called if render_to_response() is overridden.
- post(request: HttpRequest, *args: Any, **kwargs: Any) HttpResponse[source]
View to validate the connection between the authenticator app and the user account.
- Parameters:
request (HttpRequest) – The current request
*args (Any) – The supplied arguments
**kwargs (Any) – The supplied keyword arguments
- Returns:
A redirection to the account settings
- Return type:
HttpResponse
- render_to_response(context, **response_kwargs)[source]
Return a response, using the response_class for this view, with a template rendered with the given context.
Pass response_kwargs to the constructor of the response class.
- response_class[source]
alias of
TemplateResponse
User Settings View
- class integreat_cms.cms.views.settings.user_settings_view.UserSettingsView(**kwargs)[source]
Bases:
TemplateViewView for the individual account settings
- __init__(**kwargs)[source]
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- get_context_data(**kwargs: Any) dict[str, Any][source]
Returns a dictionary representing the template context (see
get_context_data()).
- get_template_names()[source]
Return a list of template names to be used for the request. Must return a list. May not be called if render_to_response() is overridden.
- post(request: HttpRequest, *args: Any, **kwargs: Any) HttpResponseRedirect[source]
Submit
UserEmailFormandUserPasswordFormand saveUserobject- Parameters:
request (HttpRequest) – The current request
*args (Any) – The supplied arguments
**kwargs (Any) – The supplied keyword arguments
- Returns:
The rendered template response
- Return type:
HttpResponseRedirect
- render_to_response(context, **response_kwargs)[source]
Return a response, using the response_class for this view, with a template rendered with the given context.
Pass response_kwargs to the constructor of the response class.
- response_class[source]
alias of
TemplateResponse
- template_name = 'settings/user_settings.html'[source]
The template to render (see
TemplateResponseMixin)