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:
parent
27a167e913
commit
350e88aa34
1 changed files with 16 additions and 1 deletions
|
@ -39,18 +39,33 @@ ApplicationWindow {
|
|||
anchors.top: passwordLabel.bottom
|
||||
}
|
||||
|
||||
Label {
|
||||
id: otpLabel
|
||||
|
||||
text: "One-Time Password"
|
||||
|
||||
anchors.top: passwordField.bottom
|
||||
}
|
||||
|
||||
TextField {
|
||||
id: otpField
|
||||
|
||||
anchors.top: otpLabel.bottom
|
||||
}
|
||||
|
||||
Button {
|
||||
id: loginButton
|
||||
|
||||
text: "Login"
|
||||
|
||||
anchors.top: passwordField.bottom
|
||||
anchors.top: otpField.bottom
|
||||
|
||||
onClicked: {
|
||||
var info = core.createNewLoginInfo();
|
||||
info.settings = core.getProfileQML(0);
|
||||
info.username = usernameField.text
|
||||
info.password = passwordField.text
|
||||
info.oneTimePassword = otpField.text
|
||||
|
||||
print(info);
|
||||
core.squareBoot.checkGateStatus(info);
|
||||
|
|
Loading…
Add table
Reference in a new issue