diff options
author | Kegan Dougal <kegan@matrix.org> | 2014-09-05 13:31:47 -0700 |
---|---|---|
committer | Kegan Dougal <kegan@matrix.org> | 2014-09-05 13:31:47 -0700 |
commit | 0280176ccddb9a1f142ad14a9a8a6e97686b0a4d (patch) | |
tree | 28f49f195686b6bfefa313754e4b5e76fea32977 /webclient/login/register-controller.js | |
parent | Merge branch 'develop' of github.com:matrix-org/synapse into develop (diff) | |
download | synapse-0280176ccddb9a1f142ad14a9a8a6e97686b0a4d.tar.xz |
Added basic captcha, not hooked up
Diffstat (limited to 'webclient/login/register-controller.js')
-rw-r--r-- | webclient/login/register-controller.js | 14 |
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(); + }; + }]); |