summary refs log tree commit diff
path: root/webclient/login/register-controller.js
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2014-09-05 13:31:47 -0700
committerKegan Dougal <kegan@matrix.org>2014-09-05 13:31:47 -0700
commit0280176ccddb9a1f142ad14a9a8a6e97686b0a4d (patch)
tree28f49f195686b6bfefa313754e4b5e76fea32977 /webclient/login/register-controller.js
parentMerge branch 'develop' of github.com:matrix-org/synapse into develop (diff)
downloadsynapse-0280176ccddb9a1f142ad14a9a8a6e97686b0a4d.tar.xz
Added basic captcha, not hooked up
Diffstat (limited to 'webclient/login/register-controller.js')
-rw-r--r--webclient/login/register-controller.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/webclient/login/register-controller.js b/webclient/login/register-controller.js
index 5a14964248..1c1f4c42f3 100644
--- a/webclient/login/register-controller.js
+++ b/webclient/login/register-controller.js
@@ -142,6 +142,20 @@ angular.module('RegisterController', ['matrixService'])
             }
         );
     };
+	
+	var setupCaptcha = function() {
+	    console.log("Setting up ReCaptcha")
+	    Recaptcha.create("6Le31_kSAAAAAK-54VKccKamtr-MFA_3WS1d_fGV",
+	    "regcaptcha",
+	    {
+	      theme: "red",
+	      callback: Recaptcha.focus_response_field
+	    });
+	};
 
+	$scope.init = function() {
+	    setupCaptcha();
+	};
+    
 }]);