Commit e337ecd6 authored by Birin Sanchez's avatar Birin Sanchez
Browse files

Obfuscate sensitive variables that are included in crash reports.


Signed-off-by: Birin Sanchez's avatarBirin Sanchez <birin.sanchez@puri.sm>
parent aefab0ba
Pipeline #34284 passed with stage
in 29 seconds
from django.conf import settings
from django.contrib.auth import logout
from django.urls import reverse
from django.utils.decorators import method_decorator
from django.views.decorators.debug import sensitive_post_parameters
from registration.backends.simple.views import RegistrationView
from cart.models import ChosenReward
from purist.models import AccountType
......@@ -87,3 +89,7 @@ class CartRegistrationView(RegistrationView):
user.save()
reward.save()
return user
@method_decorator(sensitive_post_parameters('password1', 'password2'))
def dispatch(self, *args, **kwargs):
return super().dispatch(*args, **kwargs)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment