From 2eeb8ec4fa0803b98b7f9b86c68d3f4f4c13c6ec Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Tue, 24 Feb 2015 09:53:30 +0000 Subject: [PATCH] Set user-visible error when the server is misconfigured. --- static/client/register/js/register.js | 1 + 1 file changed, 1 insertion(+) diff --git a/static/client/register/js/register.js b/static/client/register/js/register.js index 38408f731f..b62763a293 100644 --- a/static/client/register/js/register.js +++ b/static/client/register/js/register.js @@ -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,