-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathchallenge.tmpl.html
More file actions
31 lines (31 loc) · 1 KB
/
challenge.tmpl.html
File metadata and controls
31 lines (31 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<html>
<head>
<title>Verifying connection</title>
<script src="{{ .FrontendJS }}" async defer referrerpolicy="no-referrer"></script>
</head>
<body>
<h1>Verifying connection</h1>
<p>One moment while we verify your network connection.</p>
<form action="{{ .ChallengeURL }}" method="post" id="captcha-form" accept-charset="UTF-8">
<div
data-callback="captchaCallback"
class="{{ .FrontendKey }}"
data-sitekey="{{ .SiteKey }}"
data-theme="auto"
data-size="normal"
data-language="auto"
data-retry="auto"
interval="8000"
data-appearance="always">
</div>
<input type="hidden" name="destination" value="{{ .Destination }}">
</form>
<script type="text/javascript">
function captchaCallback(token) {
setTimeout(function() {
document.getElementById("captcha-form").submit();
}, 1000);
}
</script>
</body>
</html>