summaryrefslogtreecommitdiff
path: root/www/scripts/captcha.js
blob: e0ebf967f4b790d4923695b1f07fe8144302d529 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
async function onTurnstileSuccess(token) {
	const response = await fetch("https://backend.altafcreator.com/email", {
		method: 'POST',
		headers: {
			'Content-Type': 'application/json',
		},
		body: JSON.stringify({"token": token}),
	});
	
	const result = await response.json();
	
	if (result.status) {
	} else {
	}
}