|
@@ -1,6 +1,7 @@
|
|
from django.core.exceptions import ValidationError
|
|
from django.core.exceptions import ValidationError
|
|
from django.http import JsonResponse
|
|
from django.http import JsonResponse
|
|
from django.utils.translation import ugettext as _
|
|
from django.utils.translation import ugettext as _
|
|
|
|
+from django.views.decorators.debug import sensitive_post_parameters
|
|
|
|
|
|
from misago.core.decorators import ajax_only, require_POST
|
|
from misago.core.decorators import ajax_only, require_POST
|
|
|
|
|
|
@@ -8,6 +9,7 @@ from misago.users import validators
|
|
|
|
|
|
|
|
|
|
def api(f):
|
|
def api(f):
|
|
|
|
+ @sensitive_post_parameters
|
|
@ajax_only
|
|
@ajax_only
|
|
@require_POST
|
|
@require_POST
|
|
def decorator(request, *args, **kwargs):
|
|
def decorator(request, *args, **kwargs):
|