mirror of
https://github.com/element-hq/synapse.git
synced 2026-12-05 11:16:04 +00:00
Set user-visible error when the server is misconfigured.
This commit is contained in:
1 parent
28d8614f48
commit
2eeb8ec4fa
1 file changed
+1
@@ -23,6 +23,7 @@ var setupCaptcha = function() {
|
||||
var public_key = window.matrixRegistrationConfig.recaptcha_public_key;
|
||||
if (public_key === undefined) {
|
||||
console.error("No public key defined for captcha!");
|
||||
setFeedbackString("Misconfigured captcha for server. Contact server admin.");
|
||||
return;
|
||||
}
|
||||
Recaptcha.create(public_key,
|
||||
|
||||
Reference in new issue
Block a user