This commit is contained in:
Aevann1 2021-12-14 23:32:58 +02:00
parent 62ae2348ce
commit 90e6e5cef1
6 changed files with 30 additions and 24 deletions

View file

@ -169,7 +169,7 @@ def logout(v):
@app.get("/signup")
@auth_desired
def sign_up_get(v):
with open('./disablesignups', 'r') as f:
with open('disablesignups', 'r') as f:
if f.read() == "yes": return "New account registration is currently closed. Please come back later.", 403
if v: return redirect("/")
@ -217,7 +217,7 @@ def sign_up_get(v):
@limiter.limit("5/day")
@auth_desired
def sign_up_post(v):
with open('./disablesignups', 'r') as f:
with open('disablesignups', 'r') as f:
if f.read() == "yes": return "New account registration is currently closed. Please come back later.", 403
if v: abort(403)