diff --git a/drama/routes/login.py b/drama/routes/login.py index 67d66f6eb..d8475927d 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)