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

function handleCredentialResponse(response: any) {
    client.sender.sendServer(`2T#${response.credential}#%`);
}
window.handleCredentialResponse = handleCredentialResponse;

export function showFactorDialog(args: string[]) {
    document.getElementById("client_secondfactor").style.display = args[1];
}