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

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

export function showFactorDialog() {
  document.getElementById("client_secondfactor").style.display = "block";
}