Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change to RECAPTCHA_SECRET_KEY #313

Merged
merged 2 commits into from
Feb 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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'),
];