Merge branch 'captcha-auto-submit' into kikeflare

This commit is contained in:
Thomas Lynch
2022-09-17 15:47:29 +00:00
8 changed files with 86 additions and 88 deletions

View File

@ -88,6 +88,7 @@ local body_template = [[
<noscript>
<style>.jsonly{display:none}</style>
</noscript>
<script src="/js/challenge.js"></script>
</head>
<body data-pow="%s">
%s
@ -103,7 +104,6 @@ local body_template = [[
<p>Security and Performance by <a href="https://BasedFlare.com">BasedFlare</a></p>
<p>Node: <code>%s</code></p>
</footer>
<script src="/js/challenge.js"></script>
</body>
</html>
]]
@ -147,9 +147,8 @@ local captcha_section_template = [[
Please solve the captcha to continue.
</h3>
<form class="jsonly" method="POST">
<div class="%s" data-sitekey="%s"></div>
<div class="%s" data-sitekey="%s" data-callback="onCaptchaSubmit"></div>
<script src="%s" async defer></script>
<input type="submit" value="Calculating proof of work..." disabled>
</form>
]]