Skip to content
Snippets Groups Projects
Commit 2eeb8ec4 authored by Kegan Dougal's avatar Kegan Dougal
Browse files

Set user-visible error when the server is misconfigured.

parent 28d8614f
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment