mirror of
https://github.com/redstrate/Astra.git
synced 2025-05-19 15:37:46 +00:00
Fix auto-generated OTP codes in manual logins
This now doesn't try to send the server an OTP called "Auto-generated", whoops.
This commit is contained in:
parent
9fc55adeff
commit
0bccfc00e8
1 changed files with 5 additions and 1 deletions
|
@ -275,7 +275,11 @@ QQC2.Control {
|
||||||
enabled: page.isLoginValid
|
enabled: page.isLoginValid
|
||||||
onClicked: {
|
onClicked: {
|
||||||
page.Window.window.pageStack.layers.push(Qt.createComponent("zone.xiv.astra", "StatusPage"))
|
page.Window.window.pageStack.layers.push(Qt.createComponent("zone.xiv.astra", "StatusPage"))
|
||||||
LauncherCore.login(LauncherCore.currentProfile, usernameField.text, passwordField.text, otpField.text)
|
let otp = otpField.text;
|
||||||
|
if (LauncherCore.currentProfile.account.config.rememberOTP) {
|
||||||
|
otp = LauncherCore.currentProfile.account.getOTP();
|
||||||
|
}
|
||||||
|
LauncherCore.login(LauncherCore.currentProfile, usernameField.text, passwordField.text, otp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue