From c45af67d16e878d1afe11434417bfc69e237a3c6 Mon Sep 17 00:00:00 2001 From: Steven Ngesera Date: Sat, 14 Sep 2024 13:36:18 +0300 Subject: [PATCH] Correct undefined const DEFAULT_NO_PASSWORD_SAVE in docker --- scripts/create_account.php | 2 ++ scripts/delete_account.php | 2 ++ scripts/setup_database.php | 2 ++ scripts/update_password.php | 2 ++ 4 files changed, 8 insertions(+) diff --git a/scripts/create_account.php b/scripts/create_account.php index 26c6a267eb..b91c550a02 100644 --- a/scripts/create_account.php +++ b/scripts/create_account.php @@ -32,6 +32,8 @@ /* get config object */ $config = new Hm_Site_Config_File(); +/* set the default since and per_source values */ +$environment->define_default_constants($config); /* check config for db auth */ if ($config->get('auth_type') != 'DB') { diff --git a/scripts/delete_account.php b/scripts/delete_account.php index d489a03984..73229959e8 100644 --- a/scripts/delete_account.php +++ b/scripts/delete_account.php @@ -30,6 +30,8 @@ $environment->load(); /* get config object */ $config = new Hm_Site_Config_File(); +/* set the default since and per_source values */ +$environment->define_default_constants($config); /* check config for db auth */ if ($config->get('auth_type') != 'DB') { diff --git a/scripts/setup_database.php b/scripts/setup_database.php index 64b7104417..21ff8c9e1d 100755 --- a/scripts/setup_database.php +++ b/scripts/setup_database.php @@ -13,6 +13,8 @@ /* get config object */ $config = new Hm_Site_Config_File(); +/* set the default since and per_source values */ +$environment->define_default_constants($config); $session_type = $config->get('session_type'); $auth_type = $config->get('auth_type'); diff --git a/scripts/update_password.php b/scripts/update_password.php index a87f152b10..91f9006348 100644 --- a/scripts/update_password.php +++ b/scripts/update_password.php @@ -31,6 +31,8 @@ $environment->load(); /* get config object */ $config = new Hm_Site_Config_File(merge_config_files(APP_PATH.'config')); +/* set the default since and per_source values */ +$environment->define_default_constants($config); /* check config for db auth */ if ($config->get('auth_type') != 'DB') {