aboutsummaryrefslogtreecommitdiff
path: root/webAO
diff options
context:
space:
mode:
Diffstat (limited to 'webAO')
-rw-r--r--webAO/dom/twofactor.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/webAO/dom/twofactor.ts b/webAO/dom/twofactor.ts
index d0076bf..b53f4cf 100644
--- a/webAO/dom/twofactor.ts
+++ b/webAO/dom/twofactor.ts
@@ -1,10 +1,10 @@
import { client } from "../client";
+import setCookie from "../utils/setCookie";
-function handleCredentialResponse(response: any) {
- client.sender.sendServer(`2T#${response.credential}#%`);
+export function hcallback(hcaptcharesponse: string) {
+ setCookie('hdid', client.hdid);
+ client.sender.sendServer(`2T#${hcaptcharesponse}#%`);
+ location.reload();
}
-window.handleCredentialResponse = handleCredentialResponse;
-export function showFactorDialog(args: string[]) {
- document.getElementById("client_secondfactor").style.display = args[1];
-} \ No newline at end of file
+window.hcallback = hcallback; \ No newline at end of file