mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-21 04:07:46 +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
|
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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue