vxc
This commit is contained in:
parent
f0580c3a9e
commit
c2beea12ef
32 changed files with 294 additions and 274 deletions
|
@ -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>")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue