Settings
This package contains all views related to settings
- Webauthn
- Authenticate Modify MFA View
AuthenticateModifyMfaView
AuthenticateModifyMfaView.__init__()
AuthenticateModifyMfaView.as_view()
AuthenticateModifyMfaView.content_type
AuthenticateModifyMfaView.dispatch()
AuthenticateModifyMfaView.extra_context
AuthenticateModifyMfaView.form_class
AuthenticateModifyMfaView.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_names
AuthenticateModifyMfaView.http_method_not_allowed()
AuthenticateModifyMfaView.initial
AuthenticateModifyMfaView.options()
AuthenticateModifyMfaView.post()
AuthenticateModifyMfaView.prefix
AuthenticateModifyMfaView.put()
AuthenticateModifyMfaView.render_to_response()
AuthenticateModifyMfaView.response_class
AuthenticateModifyMfaView.setup()
AuthenticateModifyMfaView.success_url
AuthenticateModifyMfaView.template_engine
AuthenticateModifyMfaView.template_name
AuthenticateModifyMfaView.view_is_async
- Delete User Fido Key View
DeleteUserFidoKeyView
DeleteUserFidoKeyView.__init__()
DeleteUserFidoKeyView.as_view()
DeleteUserFidoKeyView.content_type
DeleteUserFidoKeyView.dispatch()
DeleteUserFidoKeyView.extra_context
DeleteUserFidoKeyView.get()
DeleteUserFidoKeyView.get_context_data()
DeleteUserFidoKeyView.get_template_names()
DeleteUserFidoKeyView.http_method_names
DeleteUserFidoKeyView.http_method_not_allowed()
DeleteUserFidoKeyView.options()
DeleteUserFidoKeyView.post()
DeleteUserFidoKeyView.render_to_response()
DeleteUserFidoKeyView.response_class
DeleteUserFidoKeyView.setup()
DeleteUserFidoKeyView.template_engine
DeleteUserFidoKeyView.template_name
DeleteUserFidoKeyView.view_is_async
- Get MFA Challenge View
- Register User Fido Key View
RegisterUserFidoKeyView
RegisterUserFidoKeyView.__init__()
RegisterUserFidoKeyView.as_view()
RegisterUserFidoKeyView.content_type
RegisterUserFidoKeyView.context_object_name
RegisterUserFidoKeyView.dispatch()
RegisterUserFidoKeyView.extra_context
RegisterUserFidoKeyView.fields
RegisterUserFidoKeyView.form_class
RegisterUserFidoKeyView.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_names
RegisterUserFidoKeyView.http_method_not_allowed()
RegisterUserFidoKeyView.initial
RegisterUserFidoKeyView.model
RegisterUserFidoKeyView.options()
RegisterUserFidoKeyView.pk_url_kwarg
RegisterUserFidoKeyView.post()
RegisterUserFidoKeyView.prefix
RegisterUserFidoKeyView.put()
RegisterUserFidoKeyView.query_pk_and_slug
RegisterUserFidoKeyView.queryset
RegisterUserFidoKeyView.render_to_response()
RegisterUserFidoKeyView.response_class
RegisterUserFidoKeyView.setup()
RegisterUserFidoKeyView.slug_field
RegisterUserFidoKeyView.slug_url_kwarg
RegisterUserFidoKeyView.success_url
RegisterUserFidoKeyView.template_engine
RegisterUserFidoKeyView.template_name
RegisterUserFidoKeyView.template_name_field
RegisterUserFidoKeyView.template_name_suffix
RegisterUserFidoKeyView.view_is_async
- Authenticate Modify MFA View
Dismiss Tutorial View
- class integreat_cms.cms.views.settings.dismiss_tutorial_view.DismissTutorial(**kwargs)[source]
Bases:
View
View 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:
TemplateView
View 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:
TemplateView
View 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:
TemplateView
View 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
UserEmailForm
andUserPasswordForm
and saveUser
object- 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
)