summary refs log tree commit diff
path: root/webclient/login/register-controller.js
diff options
context:
space:
mode:
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();
+	};
+    
 }]);