Skip to content

Bugfix stable 3 5 0 100 fix captcha on login#130

Open
jonasraoni wants to merge 3 commits intopkp:stable-3_5_0from
jonasraoni:bugfix-stable-3_5_0-100-fix-captcha-on-login
Open

Bugfix stable 3 5 0 100 fix captcha on login#130
jonasraoni wants to merge 3 commits intopkp:stable-3_5_0from
jonasraoni:bugfix-stable-3_5_0-100-fix-captcha-on-login

Conversation

@jonasraoni
Copy link

No description provided.

@jonasraoni jonasraoni linked an issue Sep 17, 2025 that may be closed by this pull request
@jonasraoni jonasraoni force-pushed the bugfix-stable-3_5_0-100-fix-captcha-on-login branch from bf63eed to e5848c8 Compare September 19, 2025 17:28
if ($isCaptchaEnabled) {
$templateMgr->addJavaScript(
'recaptcha',
'https://www.recaptcha.net/recaptcha/api.js?hl=' . substr(Locale::getLocale(), 0, 2)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should substr still be used here? I see in PKPTemplateManager we no longer use it as of 3.5: https://github.com/pkp/pkp-lib/blob/ff423896b6459b98b4ab96444175c751f7dd821c/classes/template/PKPTemplateManager.php#L264

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add recaptcha to login modal

2 participants