remotes/1693045480750635534/spooky-22
fireworks88 2021-07-26 16:45:21 +02:00
parent a66e35c20a
commit 8c1bee5bb4
1 changed files with 4 additions and 2 deletions

View File

@ -156,7 +156,8 @@ def logout(v):
@no_cors
@auth_desired
def sign_up_get(v):
#if disablesignups: return "Signups are disable for the time being.", 403
if app.config.get("DISABLESIGNUPS", False):
return "Signups are disable for the time being.", 403
if v: return redirect("/")
@ -212,7 +213,8 @@ def sign_up_get(v):
@no_cors
@auth_desired
def sign_up_post(v):
#if disablesignups: return "Signups are disable for the time being.", 403
if app.config.get("DISABLESIGNUPS", False):
return "Signups are disable for the time being.", 403
if v:
abort(403)