diff --git a/application/config/constants.php b/application/config/constants.php index 32392fc..2a1189b 100755 --- a/application/config/constants.php +++ b/application/config/constants.php @@ -114,7 +114,7 @@ define('MAX_DISPLAY_FILE_SIZE', 0x200000); // 2M define('WORKSPACE_DIR', '/tmp/workspace'); // salt for totp generator -define('TOTP_SALT', 'codefever-salt'); +define('TOTP_SALT', YAML_TOTP_SALT); // default paging sessing define('DEFAULT_PAGE_SIZE', 20); diff --git a/env.template.yaml b/env.template.yaml index fe9e081..4d7aabe 100755 --- a/env.template.yaml +++ b/env.template.yaml @@ -21,6 +21,10 @@ session: name: codefever_community key: +# totp settings (for verification code generating) +totp: + salt: + # path path: file: file-storage diff --git a/misc/install.sh b/misc/install.sh index b16a4bd..a170861 100644 --- a/misc/install.sh +++ b/misc/install.sh @@ -84,5 +84,6 @@ echo '=== IMPORTANT NOTICE ===' echo '1. You shuold edit file to finish mysql settings.' echo '2. You shuold edit file to finish cookie settings.' echo '3. You shuold edit file to finish git gateway security settings.' -echo '4. Run sh ./create_db.sh after change env.yaml.' -echo '5. Run sh ./remove_test_data.sh if you DO NOT need to run unit test.' +echo '4. You shuold edit file to finish verification code security settings.' +echo '5. Run sh ./create_db.sh after change env.yaml.' +echo '6. Run sh ./remove_test_data.sh if you DO NOT need to run unit test.' diff --git a/misc/update.sh b/misc/update.sh index 57dafd1..ad62249 100644 --- a/misc/update.sh +++ b/misc/update.sh @@ -77,4 +77,5 @@ echo -e "\n\n\n" echo '=== IMPORTANT NOTICE ===' echo '1. CodeFever Comminuty Upgrated.' +echo '2. Check <./env.yaml> file, copy section from <./env.template.yaml> if not exsit.' echo 'have fun!'