Skip to content

Commit

Permalink
Replace key on deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvarner committed Sep 6, 2024
1 parent ba64861 commit dc0b139
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
VITE_API_ENDPOINT: ${{secrets.VITE_API_ENDPOINT}}
VITE_RECAPTCHA_API_KEY: ${{secrets.VITE_RECAPTCHA_API_KEY}}
REMOTE_USER: ${{secrets.REMOTE_USER}}
CAPTCHA_SECRET_KEY: ${{secrets.CAPTCHA_SECRET_KEY}}

steps:
- uses: actions/checkout@v3
Expand All @@ -34,6 +35,9 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 16
- name: Add key to Captcha script
run: |
sed -i "s\<KEY>\\$CAPTCHA_SECRET_KEY\g" ./public/verifyCaptcha.php
- name: Install and Build
run: |
npm install
Expand Down
2 changes: 1 addition & 1 deletion public/verifyCaptcha.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
switch ($_SERVER["REQUEST_METHOD"]) {
case 'POST':
$captcha_value = $_POST['captchaValue'];
$url = "https://www.google.com/recaptcha/api/siteverify?secret=&response=$captcha_value";
$url = "https://www.google.com/recaptcha/api/siteverify?secret=6LcX8jYqA4-ka_cYIcW7mM6TmMDFAAAAFnPjlLa0&response=$captcha_value";
$request = [
'https' => [
'method' => 'POST',
Expand Down

0 comments on commit dc0b139

Please sign in to comment.