Nicer /new URL for new accounts and redirect GET requests

If user types in https://nine.testrun.org/new manually
in the browser, at least Firefox and Brave suggest
to open the app after following the redirect.
This commit is contained in:
link2xt
2024-01-15 11:06:35 +00:00
parent 700256c273
commit 24fb9eb65b
3 changed files with 18 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ import io
def gen_qr_png_data(maildomain):
url = f"DCACCOUNT:https://{maildomain}/cgi-bin/newemail.py"
url = f"DCACCOUNT:https://{maildomain}/new"
image = gen_qr(maildomain, url)
temp = io.BytesIO()
image.save(temp, format="png")