From 62644f452f25fd46018d39c18035a777af03df1d Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 18 Jun 2022 01:18:06 +0200 Subject: [PATCH] CF verification --- files/routes/static.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/files/routes/static.py b/files/routes/static.py index 6c7bec32a..feba288a8 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -370,10 +370,10 @@ def settings_security(v): mfa_secret=pyotp.random_base32() if not v.mfa_secret else None ) -@app.get("/.well-known/assetlinks.json") -def googleplayapp(): - with open("files/assets/assetlinks.json", "r", encoding='utf_8') as f: - return Response(f.read(), mimetype='application/json') +@app.get("/.well-known/cf-2fa-verify.txt") +def cfverify(): + with open(f"files/assets/cf/{SITE}", "r", encoding='utf_8') as f: + return f.read()