aboutsummaryrefslogtreecommitdiff
path: root/gn_auth/auth
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-08-08 09:54:15 -0500
committerFrederick Muriuki Muriithi2024-08-08 09:54:15 -0500
commit342a2d005cc31290f5bdef88f01521833e70caa5 (patch)
tree6b09a0d76186dc86ef4ad320cef6ed6c3de1a1e6 /gn_auth/auth
parent62273d5438ce8b8a7b1810b170b01f1db3c78515 (diff)
downloadgn-auth-342a2d005cc31290f5bdef88f01521833e70caa5.tar.gz
Get data from form too.
Diffstat (limited to 'gn_auth/auth')
-rw-r--r--gn_auth/auth/requests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn_auth/auth/requests.py b/gn_auth/auth/requests.py
index 6301029..00e9b35 100644
--- a/gn_auth/auth/requests.py
+++ b/gn_auth/auth/requests.py
@@ -3,4 +3,4 @@ from flask import request
def request_json() -> dict:
"""Retrieve the JSON sent in a request."""
- return request.json or {}
+ return request.json or dict(request.form) or {}