aboutsummaryrefslogtreecommitdiff
path: root/webAO/dom/twofactor.ts
blob: 58bbc4c797c010087bb1c011eb654069c5c7e180 (plain)
1
2
3
4
5
6
7
8
9
10
import { client } from "../client";
import setCookie from "../utils/setCookie";

export function hcallback(hcaptcharesponse: string) {
  setCookie("hdid", client.hdid);
  client.sender.sendServer(`2T#${hcaptcharesponse}#%`);
  location.reload();
}

window.hcallback = hcallback;