This commit is contained in:
Aevann1 2022-02-03 08:39:02 +02:00
parent f0580c3a9e
commit c2beea12ef
32 changed files with 294 additions and 274 deletions

View file

@ -609,7 +609,12 @@ def mfa_qr(secret, v):
img.save(mem, format="PNG")
mem.seek(0, 0)
return send_file(mem, mimetype="image/png", as_attachment=False)
try: f = send_file(mem, mimetype="image/png", as_attachment=False)
except:
print('/2faqr/<secret>', flush=True)
abort(404)
return f
@app.get("/is_available/<name>")