From 1689352db89a3644c4588fb2e765b32ce6fbda05 Mon Sep 17 00:00:00 2001 From: Scratch Date: Sun, 1 Dec 2024 06:50:30 +1100 Subject: [PATCH] Do not ask for OTP if cache is valid --- src/XIVLauncher.Core/Components/MainPage/MainPage.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/XIVLauncher.Core/Components/MainPage/MainPage.cs b/src/XIVLauncher.Core/Components/MainPage/MainPage.cs index 9a5a5ed7..eceffef7 100644 --- a/src/XIVLauncher.Core/Components/MainPage/MainPage.cs +++ b/src/XIVLauncher.Core/Components/MainPage/MainPage.cs @@ -184,7 +184,7 @@ public async Task Login(string username, string password, bool isOtp, bool var otp = string.Empty; - if (isOtp) + if (isOtp && !App.UniqueIdCache.HasValidCache(username)) { App.AskForOtp(); otp = App.WaitForOtp();