mirror of https://github.com/zulip/zulip.git
generate_secrets: Remove unused initial_password_salt in production.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
parent
fa7ae6fa7f
commit
347fd80864
|
@ -25,7 +25,6 @@ CAMO_CONFIG_FILENAME = '/etc/default/camo'
|
||||||
# Standard, 64-bit tokens
|
# Standard, 64-bit tokens
|
||||||
AUTOGENERATED_SETTINGS = [
|
AUTOGENERATED_SETTINGS = [
|
||||||
'avatar_salt',
|
'avatar_salt',
|
||||||
'initial_password_salt',
|
|
||||||
'rabbitmq_password',
|
'rabbitmq_password',
|
||||||
'shared_secret',
|
'shared_secret',
|
||||||
'thumbor_key',
|
'thumbor_key',
|
||||||
|
@ -84,6 +83,8 @@ def generate_secrets(development=False):
|
||||||
if need_secret(name):
|
if need_secret(name):
|
||||||
add_secret(name, generate_random_token(64))
|
add_secret(name, generate_random_token(64))
|
||||||
|
|
||||||
|
if development and need_secret("initial_password_salt"):
|
||||||
|
add_secret("initial_password_salt", generate_random_token(64))
|
||||||
if development and need_secret("local_database_password"):
|
if development and need_secret("local_database_password"):
|
||||||
add_secret("local_database_password", generate_random_token(64))
|
add_secret("local_database_password", generate_random_token(64))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue