summary refs log tree commit diff
path: root/static/client/register/js/register.js
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2015-02-24 09:53:30 +0000
committerKegan Dougal <kegan@matrix.org>2015-02-24 09:53:30 +0000
commit2eeb8ec4fa0803b98b7f9b86c68d3f4f4c13c6ec (patch)
tree0c1b1a135193b60614d1a2d3678fa45f4a9d5d34 /static/client/register/js/register.js
parentTrailing comma (diff)
downloadsynapse-2eeb8ec4fa0803b98b7f9b86c68d3f4f4c13c6ec.tar.xz
Set user-visible error when the server is misconfigured.
Diffstat (limited to 'static/client/register/js/register.js')
-rw-r--r--static/client/register/js/register.js1
1 files changed, 1 insertions, 0 deletions
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,