Skip to content

Commit 3beb077

Browse files
authored
Merge pull request #502 from ainuoyan/master
recaptcha is unavailable in China
2 parents 970d6e6 + 1f5fa77 commit 3beb077

File tree

3 files changed

+23
-4
lines changed

3 files changed

+23
-4
lines changed

.gitignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,22 @@
2626
/webapp/src/main/webapp/public/resources/themes/idm
2727
/webapp/src/main/webapp/public/resources/themes/mdefault
2828
/webapp/src/main/webapp/public/resources/themes/mdefault44
29+
30+
# VS Code Project Files
31+
.vscode/*
32+
.vscode/*
33+
!.vscode/settings.json
34+
!.vscode/tasks.json
35+
!.vscode/launch.json
36+
!.vscode/extensions.json
37+
38+
**/.settings/
39+
*/.settings/
40+
**/*.classpath
41+
*/*.classpath
42+
**/*.factorypath
43+
*/*.factorypath
44+
**/*.project
45+
*/*.project
46+
47+

server/src/main/resources/password/pwm/AppProperty.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,9 +284,9 @@ queue.syslog.maxCount=100000
284284
reporting.ldap.searchTimeoutMs=1800000
285285
reporting.ldap.searchThreads=8
286286
reporting.maxReportAgeSeconds=864000
287-
recaptcha.clientJsUrl=//www.google.com/recaptcha/api.js
288-
recaptcha.clientIframeUrl=//www.google.com/recaptcha/api/noscript
289-
recaptcha.validateUrl=https://www.google.com/recaptcha/api/siteverify
287+
recaptcha.clientJsUrl=//www.recaptcha.net/recaptcha/api.js
288+
recaptcha.clientIframeUrl=//www.recaptcha.net/recaptcha/api/noscript
289+
recaptcha.validateUrl=https://www.recaptcha.net/recaptcha/api/siteverify
290290
security.html.stripInlineJavascript=false
291291
security.http.forceRequestSequencing=false
292292
security.http.stripHeaderRegex=\\n|\\r|(?ism)%0A|%0D

server/src/main/resources/password/pwm/config/PwmSetting.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1615,7 +1615,7 @@
16151615
</setting>
16161616
<setting hidden="false" key="security.cspHeader" level="2">
16171617
<default>
1618-
<value><![CDATA[default-src 'self'; object-src 'none'; img-src 'self' data:; style-src 'self' 'unsafe-inline'; script-src https://www.google.com/recaptcha/ https://www.gstatic.com/recaptcha/ 'self' 'unsafe-eval' 'nonce-%NONCE%'; frame-src https://www.google.com/recaptcha/ https://www.gstatic.com/recaptcha/; report-uri /sspr/public/command/cspReport]]></value>
1618+
<value><![CDATA[default-src 'self'; object-src 'none'; img-src 'self' data:; style-src 'self' 'unsafe-inline'; script-src https://www.recaptcha.net/recaptcha/ https://www.gstatic.cn/recaptcha/ https://www.gstatic.com/recaptcha/ https://www.google.com/recaptcha/ 'self' 'unsafe-eval' 'nonce-%NONCE%'; frame-src https://www.recaptcha.net/recaptcha/ https://www.gstatic.cn/recaptcha/ https://www.gstatic.com/recaptcha/ https://www.google.com/recaptcha/ ; report-uri /sspr/public/command/cspReport]]></value>
16191619
</default>
16201620
</setting>
16211621
<setting hidden="false" key="email.adminAlert.toAddress" level="1">

0 commit comments

Comments
 (0)