diff --git a/config_panel.toml b/config_panel.toml index e48c6ae..3adba3d 100644 --- a/config_panel.toml +++ b/config_panel.toml @@ -8,20 +8,18 @@ name = "Moncycle.app configuration" [main.comptes.creation_compte] ask.en = "Enable account creation" ask.fr = "Permettre la création de nouveaux comptes" - type = "boolean" + type = "select" + choices = ["true", "false"] default = "true" - yes = "true" - no = "false" help = "Don't disable account creation before creating one for yourself !" bind = "CREATION_COMPTE:__INSTALL_DIR__/config.php" [main.comptes.connexion_compte] ask.en = "Enable account connexion" ask.fr = "Permettre la connexion aux comptes" - type = "boolean" + type = "select" + choices = ["true", "false"] default = "true" - yes = "true" - no = "false" bind = "CONNEXION_COMPTE:__INSTALL_DIR__/config.php" [main.export] diff --git a/scripts/upgrade b/scripts/upgrade index 02c406b..794b2ef 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -17,13 +17,13 @@ upgrade_type=$(ynh_check_app_version_changed) # If creation_compte doesn't exist, create it if [ -z "${creation_compte:-}" ]; then - creation_compte=true + creation_compte="true" ynh_app_setting_set --app=$app --key=creation_compte --value=$creation_compte fi # If connexion_compte doesn't exist, create it if [ -z "${connexion_compte:-}" ]; then - connexion_compte=true + connexion_compte="true" ynh_app_setting_set --app=$app --key=connexion_compte --value=$connexion_compte fi