summary refs log tree commit diff
path: root/syweb
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2014-11-15 01:29:15 +0000
committerMatthew Hodgson <matthew@matrix.org>2014-11-15 01:30:42 +0000
commita7ddcc9c0fc3c4723c23618316955f1b3941ad70 (patch)
tree14a67544531df236e337752744f6af0aa55da10f /syweb
parentFix PDU and event signatures (diff)
downloadsynapse-a7ddcc9c0fc3c4723c23618316955f1b3941ad70.tar.xz
do not use captcha by default
Diffstat (limited to 'syweb')
-rw-r--r--syweb/webclient/login/register-controller.js16
1 files changed, 5 insertions, 11 deletions
diff --git a/syweb/webclient/login/register-controller.js b/syweb/webclient/login/register-controller.js
index b23a72b185..ec48def487 100644
--- a/syweb/webclient/login/register-controller.js
+++ b/syweb/webclient/login/register-controller.js
@@ -20,7 +20,7 @@ angular.module('RegisterController', ['matrixService'])
     'use strict';
     
     var config = window.webClientConfig;
-    var useCaptcha = true;
+    var useCaptcha = false; // default to no captcha to make it easier to get a homeserver up and running...
     if (config !== undefined) {
         useCaptcha = config.useCaptcha;
     }
@@ -167,16 +167,10 @@ angular.module('RegisterController', ['matrixService'])
 	
 	var setupCaptcha = function() {
 	    console.log("Setting up ReCaptcha")
-        var config = window.webClientConfig;
-        var public_key = undefined;
-        if (config === undefined) {
-            console.error("Couldn't find webClientConfig. Cannot get public key for captcha.");
-        }
-        else {
-            public_key = webClientConfig.recaptcha_public_key;
-            if (public_key === undefined) {
-                console.error("No public key defined for captcha!")
-            }
+        var public_key = window.webClientConfig.recaptcha_public_key;
+        if (public_key === undefined) {
+            console.error("No public key defined for captcha!")
+            return;
         }
 	    Recaptcha.create(public_key,
 	    "regcaptcha",