1
Fork 0
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:
Joshua Goins 2025-05-18 11:47:03 -04:00
parent 9fc55adeff
commit 0bccfc00e8

View file

@ -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);
} }
} }