mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-16 12:02:13 -04:00
Added basic captcha, not hooked up
This commit is contained in:
parent
1c7bb34ffd
commit
0280176ccd
3 changed files with 20 additions and 3 deletions
|
@ -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();
|
||||
};
|
||||
|
||||
}]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue