remotes/1693045480750635534/spooky-22
fireworks88 2021-07-26 17:28:48 +02:00
parent f6674820ba
commit 1a06c949da
2 changed files with 3 additions and 3 deletions

View File

@ -145,7 +145,7 @@ app.config["RATELIMIT_DEFAULTS_DEDUCT_WHEN"]=lambda:True
app.config["RATELIMIT_DEFAULTS_EXEMPT_WHEN"]=lambda:False
app.config["RATELIMIT_HEADERS_ENABLED"]=True
app.config["DISABLESIGNUPS"] = bool(int(environ.get("DISABLESIGNUPS", "0")))
#app.config["DISABLESIGNUPS"] = bool(int(environ.get("DISABLESIGNUPS", "0")))
def limiter_key_func():

View File

@ -29,9 +29,9 @@
{% endfilter %}
<div class="custom-control custom-switch">
{#<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" id="disablesignups" name="disablesignups" {% if 'DISABLESIGNUPS' | app_config %}checked{% endif %} onchange="post('/disablesignups');">
<label class="custom-control-label" for="disablesignups">Disable signups</label>
</div>
</div>#}
{% endblock %}