mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Update src/dyndns.py
Co-authored-by: ljf (zamentur) <zamentur@users.noreply.github.com>
This commit is contained in:
parent
ab37617f91
commit
e58aaa6db6
1 changed files with 2 additions and 1 deletions
|
@ -216,7 +216,8 @@ def dyndns_unsubscribe(operation_logger, domain, password=None):
|
|||
try:
|
||||
r = requests.delete(
|
||||
f"https://{DYNDNS_PROVIDER}/domains/{domain}",
|
||||
data={"recovery_password":hashlib.sha256((str(domain)+":"+str(password).strip()).encode('utf-8')).hexdigest()},
|
||||
secret = str(domain) + ":" + str(password).strip()
|
||||
data = {"recovery_password": hashlib.sha256(secret.encode('utf-8')).hexdigest()},
|
||||
timeout=30,
|
||||
)
|
||||
except Exception as e:
|
||||
|
|
Loading…
Add table
Reference in a new issue