Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Birin Sanchez
Keel - LDH Middleware
Commits
e337ecd6
Commit
e337ecd6
authored
Sep 11, 2019
by
Birin Sanchez
Browse files
Obfuscate sensitive variables that are included in crash reports.
Signed-off-by:
Birin Sanchez
<
birin.sanchez@puri.sm
>
parent
aefab0ba
Pipeline
#34284
passed with stage
in 29 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
cart/views.py
View file @
e337ecd6
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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment