1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-20 19:57:45 +00:00

Add OTP input to tablet interface

This commit is contained in:
Joshua Goins 2022-09-05 17:46:27 -04:00
parent 27a167e913
commit 350e88aa34

View file

@ -39,18 +39,33 @@ ApplicationWindow {
anchors.top: passwordLabel.bottom anchors.top: passwordLabel.bottom
} }
Label {
id: otpLabel
text: "One-Time Password"
anchors.top: passwordField.bottom
}
TextField {
id: otpField
anchors.top: otpLabel.bottom
}
Button { Button {
id: loginButton id: loginButton
text: "Login" text: "Login"
anchors.top: passwordField.bottom anchors.top: otpField.bottom
onClicked: { onClicked: {
var info = core.createNewLoginInfo(); var info = core.createNewLoginInfo();
info.settings = core.getProfileQML(0); info.settings = core.getProfileQML(0);
info.username = usernameField.text info.username = usernameField.text
info.password = passwordField.text info.password = passwordField.text
info.oneTimePassword = otpField.text
print(info); print(info);
core.squareBoot.checkGateStatus(info); core.squareBoot.checkGateStatus(info);