Added basic captcha, not hooked up

This commit is contained in:
Kegan Dougal 2014-09-05 13:31:47 -07:00
parent 1c7bb34ffd
commit 0280176ccd
3 changed files with 20 additions and 3 deletions

View file

@ -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();
};
}]);