mirror of
https://github.com/YunoHost/dynette.git
synced 2024-09-03 20:06:17 +02:00
Super confused between request.data, .form, .json ...
This commit is contained in:
parent
653289c446
commit
8c100e440e
1 changed files with 1 additions and 1 deletions
2
app.py
2
app.py
|
@ -129,7 +129,7 @@ def delete_using_recovery_password_or_key(subdomain):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
assert isinstance(subdomain, str)
|
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")
|
recovery_password = data.get("recovery_password")
|
||||||
key = data.get("key")
|
key = data.get("key")
|
||||||
assert (recovery_password and isinstance(recovery_password, str)) or (
|
assert (recovery_password and isinstance(recovery_password, str)) or (
|
||||||
|
|
Loading…
Reference in a new issue