From 116a04ce4ddb8df96a9b27b4e4453aeb05cb45d0 Mon Sep 17 00:00:00 2001 From: Izalia Mae Date: Mon, 29 Jan 2024 19:55:02 -0500 Subject: [PATCH] allow empty password for database setup --- relay/manage.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/relay/manage.py b/relay/manage.py index 3f8912c..69930dc 100644 --- a/relay/manage.py +++ b/relay/manage.py @@ -129,8 +129,10 @@ def cli_setup(ctx: click.Context) -> None: ) ctx.obj.config.pg_pass = click.prompt( - 'User password: ', - hide_input = True + 'User password', + hide_input = True, + show_default = False, + default = ctx.obj.config.pg_pass or "" ) or None ctx.obj.config.save()