Super confused between request.data, .form, .json ...

This commit is contained in:
Alexandre Aubin 2023-04-11 19:15:31 +02:00
parent 653289c446
commit 8c100e440e

2
app.py
View file

@ -129,7 +129,7 @@ def delete_using_recovery_password_or_key(subdomain):
try:
assert isinstance(subdomain, str)
data = dict(request.data) # get_json(force=True)
data = dict(request.form) # get_json(force=True)
recovery_password = data.get("recovery_password")
key = data.get("key")
assert (recovery_password and isinstance(recovery_password, str)) or (