aboutsummaryrefslogtreecommitdiff
path: root/webAO/dom/twofactor.ts
blob: b7e947ae8d80ecc529df05fb94d3873a4d164194 (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];
}