From 03d22e33b05de5feea8f87afe08dc3f7cbef6a65 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 2 Nov 2020 15:56:35 +0100 Subject: [PATCH] Let the user set password --- manifest.json | 9 +++++++++ scripts/install | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index 5cc62d6..c7efdbe 100644 --- a/manifest.json +++ b/manifest.json @@ -52,6 +52,15 @@ }, "example": "johndoe" }, + { + "name": "password", + "type": "password", + "ask": { + "en": "Set the administrator password", + "fr": "Définissez le mot de passe administrateur" + }, + "example": "Choose a password" + }, { "name": "is_public", "type": "boolean", diff --git a/scripts/install b/scripts/install index 8d7c6a9..2f7ef65 100755 --- a/scripts/install +++ b/scripts/install @@ -30,7 +30,7 @@ is_public=$YNH_APP_ARG_IS_PUBLIC language=$YNH_APP_ARG_LANGUAGE random_key=$(ynh_string_random --length=32) email=$(ynh_user_get_info $admin 'mail') -password=$(ynh_string_random --length=8) +password=$YNH_APP_ARG_PASSWORD dav_support=$YNH_APP_ARG_DAV_SUPPORT signup=$YNH_APP_ARG_SIGNUP two_factor=$YNH_APP_ARG_TWO_FACTOR