Skip to content
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion app/src/main/assets/captcha.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
#gt
<script type="text/javascript">

var postToken = function (response) {
Expand Down Expand Up @@ -30,6 +31,21 @@
hcaptcha.execute(widgetID);
}

var initGTCaptcha = function() {
initGeetest4({
captchaId: '#apiKey',
product: 'bind'
}, function(captcha) {
captcha.onReady(function(){
captcha.showCaptcha();
}).onSuccess(function(){
var result = captcha.getValidate();
postToken(JSON.stringify(result));
}).onClose(function () {
postMessage("gt_close");
});
});
};
</script>
</head>

Expand All @@ -40,5 +56,4 @@
<script src="#src" async defer>
</script>
</body>

</html>
Loading
Loading