mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-01-02 21:20:47 -05:00
Set user-visible error when the server is misconfigured.
This commit is contained in:
parent
28d8614f48
commit
2eeb8ec4fa
@ -23,6 +23,7 @@ var setupCaptcha = function() {
|
|||||||
var public_key = window.matrixRegistrationConfig.recaptcha_public_key;
|
var public_key = window.matrixRegistrationConfig.recaptcha_public_key;
|
||||||
if (public_key === undefined) {
|
if (public_key === undefined) {
|
||||||
console.error("No public key defined for captcha!");
|
console.error("No public key defined for captcha!");
|
||||||
|
setFeedbackString("Misconfigured captcha for server. Contact server admin.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Recaptcha.create(public_key,
|
Recaptcha.create(public_key,
|
||||||
|
Loading…
Reference in New Issue
Block a user