aboutsummaryrefslogtreecommitdiff
path: root/webAO/dom/twofactor.ts
blob: 28b6e6ce1a58a078dcb105501c8941bed4905ae6 (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(display: string) {
  document.getElementById("client_secondfactor").style.display = display;
}