From 8c1bee5bb41d434ee0c48c6f3945947f648d2d84 Mon Sep 17 00:00:00 2001 From: fireworks88 Date: Mon, 26 Jul 2021 16:45:21 +0200 Subject: [PATCH] sneed --- drama/routes/login.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drama/routes/login.py b/drama/routes/login.py index 67d66f6eba..d8475927d9 100644 --- a/drama/routes/login.py +++ b/drama/routes/login.py @@ -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)