send2fa in sciter

This commit is contained in:
rustdesk
2024-01-19 19:29:04 +08:00
parent c8dded1108
commit e5379bb073
3 changed files with 28 additions and 3 deletions

View File

@@ -262,6 +262,15 @@ function msgbox(type, title, content, link="", callback=null, height=180, width=
else msgbox("connecting", "Connecting...", "Logging in...");
}
};
} else if (type.indexOf("input-2fa") >= 0) {
callback = function (res) {
if (!res) {
view.close();
return;
}
handler.send2fa(res.code);
msgbox("connecting", "Connecting...", "Logging in...");
};
} else if (type == "session-login" || type == "session-re-login") {
callback = function (res) {
if (!res) {