[GH-ISSUE #848] recaptcha config missing from new dotenv setup (fix included) #495

Closed
opened 2026-02-25 21:35:10 +03:00 by kerem · 1 comment
Owner

Originally created by @jasonmunro on GitHub (Dec 21, 2023).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/848

Originally assigned to: @Shadow243 on GitHub.

recaptcha has an ini file with 2 values, "secret" and "site_key". This needs to be added to the new config php files like so:

<?php

return [
    /*
    | -----------------------------------
    | Constants used for google recaptcha
    | -----------------------------------
    |
    | Once you edit this file, you must move it to the directory defined by
    | app_data_dir in your config/app.php file. No need to re-run the
    | config_gen.php script.
    |
    | SECURITY ALERT ! MAKE SURE THAT THIS FILE IS NOT ACCESSIBLE BY THE BROWSER !
    |
    */
    'recaptcha' => [
        /* Client secret for the recaptcha admin */
        'secret' => env('RECAPTCHA_SECRET', ''),

        /* Site key from the recaptcha admin */
        'site_key' => env('RECAPTCHA_SITE_KEY', '')

    ],
];

the 2 env vars should be added to the dotenv dist and example files as well

Originally created by @jasonmunro on GitHub (Dec 21, 2023). Original GitHub issue: https://github.com/cypht-org/cypht/issues/848 Originally assigned to: @Shadow243 on GitHub. recaptcha has an ini file with 2 values, "secret" and "site_key". This needs to be added to the new config php files like so: ``` <?php return [ /* | ----------------------------------- | Constants used for google recaptcha | ----------------------------------- | | Once you edit this file, you must move it to the directory defined by | app_data_dir in your config/app.php file. No need to re-run the | config_gen.php script. | | SECURITY ALERT ! MAKE SURE THAT THIS FILE IS NOT ACCESSIBLE BY THE BROWSER ! | */ 'recaptcha' => [ /* Client secret for the recaptcha admin */ 'secret' => env('RECAPTCHA_SECRET', ''), /* Site key from the recaptcha admin */ 'site_key' => env('RECAPTCHA_SITE_KEY', '') ], ]; ``` the 2 env vars should be added to the dotenv dist and example files as well
kerem closed this issue 2026-02-25 21:35:10 +03:00
Author
Owner

@Shadow243 commented on GitHub (Dec 21, 2023):

Suggestion applied from PR: https://github.com/cypht-org/cypht/pull/846

<!-- gh-comment-id:1866781378 --> @Shadow243 commented on GitHub (Dec 21, 2023): Suggestion applied from PR: https://github.com/cypht-org/cypht/pull/846
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cypht#495
No description provided.