Replaced all request.POST with request.form, ...
- Fixed error handling in OAuth plugin - Changed request.POST file fields to request.files
This commit is contained in:
@@ -132,7 +132,7 @@ class CsrfMeddleware(BaseMeddleware):
|
||||
return HTTPForbidden()
|
||||
|
||||
# get the form token and confirm it matches
|
||||
form = CsrfForm(request.POST)
|
||||
form = CsrfForm(request.form)
|
||||
if form.validate():
|
||||
form_token = form.csrf_token.data
|
||||
|
||||
|
||||
Reference in New Issue
Block a user