mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
settings: Enable Altcha in development if on localhost.
We only do this on localhost, because users of remote development servers will run afoul of "Secure context is required"[^1]. [^1]: https://altcha.org/docs/troubleshooting/#secure-context
This commit is contained in:
committed by
Tim Abbott
parent
74675fae94
commit
fd390b9eb1
@@ -128,6 +128,10 @@ def generate_secrets(development: bool = False) -> None:
|
||||
if need_secret("camo_key"):
|
||||
add_secret("camo_key", random_string(64))
|
||||
|
||||
# We enable Altcha in development
|
||||
if development and need_secret("altcha_hmac"):
|
||||
add_secret("altcha_hmac", random_token())
|
||||
|
||||
if not development:
|
||||
# The memcached_password and redis_password secrets are only
|
||||
# required/relevant in production.
|
||||
|
Reference in New Issue
Block a user