Skip to content

Commit

Permalink
Merge pull request #313 from silinternational/recaptcha-secret-key
Browse files Browse the repository at this point in the history
Release 10.2.2 -- change to RECAPTCHA_SECRET_KEY
  • Loading branch information
briskt authored Feb 26, 2025
2 parents 4539e70 + 22f24bd commit 0bb42bd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,11 @@ Optional configuration is described below.

##### Google reCAPTCHA

If a site key and secret have been provided in the `RECAPTCHA_SITE_KEY` and `RECAPTCHA_SECRET`
If a site key and secret have been provided in the `RECAPTCHA_SITE_KEY` and `RECAPTCHA_SECRET_KEY`
environment variables, the username/password page may require the user prove his/her humanity.

Deprecated: `RECAPTCHA_SECRET` is deprecated and will be removed in the next major version.

##### Branding

Set the `THEME_COLOR_SCHEME` environment variable using one of the following values:
Expand Down Expand Up @@ -558,7 +560,7 @@ MYSQL_DATABASE=
MYSQL_USER=
MYSQL_PASSWORD=
RECAPTCHA_SITE_KEY=
RECAPTCHA_SECRET=
RECAPTCHA_SECRET_KEY=
PROFILE_URL=
HELP_CENTER_URL=
```
Expand Down
4 changes: 2 additions & 2 deletions local.env.dist
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,12 @@ MFA_LEARN_MORE_URL=
# will be used in a "Forgot password?" link on the 'loginuserpass' page.
PASSWORD_FORGOT_URL=

# RECAPTCHA_SITE_KEY and RECAPTCHA_SECRET can be set to a Google reCAPTCHA key and secret. If set,
# RECAPTCHA_SITE_KEY and RECAPTCHA_SECRET_KEY can be set to a Google reCAPTCHA key and secret. If set,
# excessive failed logins will trigger a CAPTCHA prompt that must be completed for continued login
# attempts.
# See "https://developers.google.com/recaptcha/docs/faq" for test key/secret.
RECAPTCHA_SITE_KEY=
RECAPTCHA_SECRET=
RECAPTCHA_SECRET_KEY=

# SESSION_STORE_TYPE sets the SimpleSAMLphp session store type. It can be 'sql' or 'phpsession'.
# The default is 'phpsession'. It is not recommended to use 'phpsession' in production.
Expand Down
2 changes: 1 addition & 1 deletion modules/silauth/src/Auth/Source/config/ssp-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'mysql.user' => Env::get('MYSQL_USER'),
'mysql.password' => Env::get('MYSQL_PASSWORD'),
'recaptcha.siteKey' => Env::get('RECAPTCHA_SITE_KEY'),
'recaptcha.secret' => Env::get('RECAPTCHA_SECRET'),
'recaptcha.secret' => Env::get('RECAPTCHA_SECRET_KEY', Env::get('RECAPTCHA_SECRET')),
'templateData.profileUrl' => Env::get('PROFILE_URL'),
'templateData.helpCenterUrl' => Env::get('HELP_CENTER_URL'),
];

0 comments on commit 0bb42bd

Please sign in to comment.